Not enough input arguments
3 次查看(过去 30 天)
显示 更早的评论
Hi there,
I need some help figuring out why I keep getting a "Not enough input arguments" error for the following code.
Thanks in advance
Here is the error message:
Not enough input arguments.
Error in functionhandle>@(x,y)x.*y+10*sin(x).*cos(y) (line 32)
f = @(x,y) x.*y + 10*sin(x).*cos(y);
2 个评论
回答(1 个)
KSSV
2023-3-15
f = @(x,y) x.*y + 10*sin(x).*cos(y);
x = linspace(0,2*pi) ;
y = linspace(0,2*pi) ;
[X,Y] = meshgrid(x,y) ;
Z = f(X,Y) ;
surf(X,Y,Z)
0 个评论
另请参阅
类别
Find more on Polar 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!