general2012 0 Junior Poster in Training

i am trying to declare two symbols and then write a function with these two variable

syms x y
f(x,y)=3xy;
??? Error using ==> mupadmex
Error in MuPAD command: DOUBLE cannot convert the input expression into a double array.

but matlab is not allowing me to so.why this error is happening ???