I asked a question similar to this under the subject of linspace but I am re-posting it because this time I wanted to attach the photos. So that you can see clearly what my issue is.
The black/white graph(3dd.jpg) is what I am trying to draw and the graph in color(3d.jpg) is what I have drawn. I am not sure what I must modify to be able to successfully draw the black/white graph(3dd.jpg). I tried modifying the linspace values but I still couldn't achieve my goal.
Following is my code,
[X,Y] = meshgrid(x,y);
Thank you very much.