I'm trying to plot a function along a meshgrid using x = 0 : 6 and y = 0 : 10, and e.g. function f = 2 * x * sin(2*pi*y) + 4 * x * cos(2*pi*y) I'm getting the error that the matrix A^b must be square. I understand that, but then how can I get what I want? Reading the documentation it only deals with 1 variable in the function. Can somebody please tell me what mistake I make?