Show older comments
[x,y]=meshgrid(-6:1:6)
z=x*y
Is not giving the function z=x*y, anybody come across this issues pls?
Accepted Answer
More Answers (1)
Laura Proctor
on 22 Jun 2011
Or, you could use matrix multiplication with vectors:
x = -6:6;
z = x'*x
Categories
Find more on Surface and Mesh 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!