필터 지우기
필터 지우기

How can i change the colours at the above code ?

조회 수: 1 (최근 30일)
Altin Guberi
Altin Guberi 2015년 5월 30일
답변: Walter Roberson 2015년 5월 30일
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?

채택된 답변

Walter Roberson
Walter Roberson 2015년 5월 30일
Replace the 'w' (white) with 'r' (red). You might wish to also change the 'b' (blue) of the edges

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Exploration에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by