Info
This question is closed. Reopen it to edit or answer.
How can i write correct this function?
2 views (last 30 days)
Show older comments
I can't write this function in order to be correct and make its graphic in mesh. Please help me.
0 Comments
Answers (2)
Star Strider
on 18 Oct 2014
This is how I would do it:
x = linspace(0,pi);
y = linspace(-1,1);
[X,Y] = meshgrid(x,y);
z = @(x,y) sin(x-2.*y).^2 .* exp(-abs(y));
Z = z(X,Y);
figure(1)
mesh(X, Y, Z)
grid on
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!