Error using contour: Z must be at least a 2x2 matrix.
5 views (last 30 days)
Show older comments
geometry geometry on 13 May 2017
Commented: Steven Lord 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.
Andrei Bobrov on 13 May 2017
Steven Lord on 13 May 2017
Use the figure function to open a new figure window, or use subplot to create two or more separate axes in one figure window.
More Answers (0)
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!