How to define a function that can handle a vector/matrix



Hi all,

Can someone tell me how to define a function f(x) so that I can use a vecto
r 
or matrix for x.

f(x)  := matrix( 
			[x_1 + x_2] , 
			[x_1 - x_2] 
	);


x : matrix(	
			[1],
			[2]
	);

f(x);

Is this possible?

Sincerely
	-- Fabian