I try to plot a surface plot (with height in Z) from X-Y coordinates and Z as a matrix.
X and Y are my coordinates from 1 to 100 and Z is a matrix containing the values I want to plot as a surface.
Here, my Z matrix is called mymatrix.
I tried to use the commands pcolor and surf but instead of getting a surface with surf I still get the same plot as the one generated with pcolor.
I have attached the figures I get as well as mymatrix.
Here is what I tried:
title(['pcolor command'],'FontSize', 24, 'FontWeight', 'Bold');
[X,Y] = meshgrid(1:100,1:100);
title(['surf command'],'FontSize', 24, 'FontWeight', 'Bold');
Does anyone know how to produce a surface plot with height and colours as the third dimension of my plot?