In surface(x,y,z) command what is the value of z that make the white color. I mean is there a color code for surface of surf
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Abdulmajid A Mrebit
el 7 de Feb. de 2022
Respondida: Cristian Garcia Milan
el 7 de Feb. de 2022
In surface(x,y,z) command what is the value of z that make the white color. I mean is there a color code for surface of surf
1 comentario
Respuesta aceptada
Steven Lord
el 7 de Feb. de 2022
Many plotting functions interpret NaN in the data as "don't display anything."
[x, y, z] = peaks;
z(abs(z) < 1) = NaN; % Cut out everything between -1 and +1 on the Z axis
surface(x, y, z)
view(3)
0 comentarios
Más respuestas (1)
Cristian Garcia Milan
el 7 de Feb. de 2022
Yes, there is. You have to use
surface(X,Y,Z,C)
You have to set the colours as you want, for example:
C(Z==z0,:) = [255,255,255];
0 comentarios
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
