How to edit surf graph in MATLAB?

3 visualizaciones (últimos 30 días)
Wittaya Sata
Wittaya Sata el 20 de Jul. de 2017
Comentada: Wittaya Sata el 30 de Jul. de 2017
Hi. I want plot Matrix to surf 3d graph on left picture, but I plot show on right picture. How to fix or code me for plot graph on left picture?
#Thank you.
My code : code
  6 comentarios
dbmn
dbmn el 26 de Jul. de 2017
If you want to get rid of the minus do:
zlim([-40 0]) % change limits, following walters remark
% now we take care about the minus
zticklabels(num2cell(-zticks)); % This creates new z-labels
Note if you update the zlims, you need to update the labels as well, because labels are just stickers that we put onto the z axis and they do not change when the axis changes.
Wittaya Sata
Wittaya Sata el 30 de Jul. de 2017
U___U

Iniciar sesión para comentar.

Respuesta aceptada

dbmn
dbmn el 21 de Jul. de 2017
This should help you get started. I just added some lines to your code to make it look more like the old one
hdl = surf(B);
shading interp
xlabel('row')
ylabel('column')
% added stuff
colormap(jet) % old colormap
colormap(flipud(colormap)) % invert colormap (following Walters Remark)
hdl.EdgeColor = 'k' % black lines
  3 comentarios
Walter Roberson
Walter Roberson el 23 de Jul. de 2017
zlim([0 40]) or possibly zlim([-40 0])
Wittaya Sata
Wittaya Sata el 24 de Jul. de 2017
thank you for x y z lim

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by