Borrar filtros
Borrar filtros

How can i change the colours at the above code ?

1 visualización (últimos 30 días)
Altin Guberi
Altin Guberi el 30 de Mayo de 2015
Respondida: Walter Roberson el 30 de Mayo de 2015
Here at this code :
step = 0.05;
[X Y Z] = meshgrid(-3:step:3, -3:step:3, -3:step:3);
F=((-(X.^2).*(Z.^3)-(9/80).*(Y.^2).*(Z.^3))+((X.^2)+(9/4).*(Y.^2)+(Z.^2)-1).^3);
p = patch(isosurface(X,Y,Z,F,0));
set(p,'facecolor','w','EdgeColor','b');
daspect([1 1 1]), view(3), axis tight, axis equal
How to make this pink or red?

Respuesta aceptada

Walter Roberson
Walter Roberson el 30 de Mayo de 2015
Replace the 'w' (white) with 'r' (red). You might wish to also change the 'b' (blue) of the edges

Más respuestas (0)

Categorías

Más información sobre Visual Exploration 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