% First create a symbolic function f. Creating f automatically creates x and y syms f(x,y) % Then assign a function f(x,y) = x^2*y