how to create an anonymous function?
1 次查看(过去 30 天)
显示 更早的评论
回答(2 个)
Azzi Abdelmalek
2015-6-24
x=[-2,2]
y=[-2,2]
[X,Y]=meshgrid(x,y)
Z=X.*exp(-2*Y.^2-X.^2)
surf(X,Y,Z)
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!