color for surf 3d
이전 댓글 표시
i represent a 3d surf in my code and i want color the result blue not black i use this code :
h=surf(xImage,yImage,zImage,...
'CData',rgbPic,...
'FaceColor','interp','EdgeColor','none','LineStyle','none');

댓글 수: 1
Star Strider
2015년 12월 18일
답변 (1개)
Geoff Hayes
2015년 12월 17일
Samer - what happens if you just set the FaceColor property to blue as
h=surf(xImage,yImage,zImage,...
'CData',rgbPic,...
'FaceColor','blue','EdgeColor','none','LineStyle','none');
댓글 수: 12
samer mahmoud
2015년 12월 17일
Geoff Hayes
2015년 12월 17일
Can you attach your data for xImage, yImage, and zImage?
samer mahmoud
2015년 12월 18일
편집: Geoff Hayes
2015년 12월 18일
Geoff Hayes
2015년 12월 18일
Okay, how about for the rgpPic?
samer mahmoud
2015년 12월 19일
samer mahmoud
2015년 12월 19일
Geoff Hayes
2015년 12월 19일
Samer - can you attach the rgbPic data as a mat file? That way, someone can use it with surf to try and colour it blue.
samer mahmoud
2015년 12월 19일
Walter Roberson
2015년 12월 19일
If it is a grayscale or binary image, why is the variable name "rgbPic" ?
Sigh.
bluemap = [0 0 1; 0 0 0];
colormap(bluemap);
samer mahmoud
2015년 12월 19일
Walter Roberson
2015년 12월 19일
In your other thread where the discussion is taking place, rgbPic is not binary, but in this thread it is??
It gets really confusing for people when you are discussing two different versions of code without making clear what the difference is between the two versions.
samer mahmoud
2015년 12월 20일
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
