I have this code:
[x,y] = meshgrid(-2:.2:2);z = exp(-(x.^2 +y.^2));surf(x,y,z);colormap(hot)
And the image associated is:
but i want this one (i can create more matrix or concatenate x and y matrix):
any tip? Thanks
3d plotsMATLABmatrix manipulation
[x,y] = meshgrid(-2:.2:2);z = exp(-(x.^2 +y.^2));surf(x,y,z);colormap(hot)
Best Answer