Error using contour: Z must be at least a 2x2 matrix.
2 views (last 30 days)
geometry geometry on 13 May 2017
What's the problem with the following code?
f=input('enter function: ','s');
f = str2func(['@(x,y)' vectorize(f)]);
When I enter sin(x)+cos(y) the following error occurs:
Z must be at least a 2x2 matrix.