surf colors with cylinder output
이전 댓글 표시
Hi, I have radius data for given depths. I'd like to plot it in 3D with colors matching the radius range. I'm not sure how to construct color palette correctly. r = 3.6247 3.6329 3.6412 3.6494; (r has over 8000 points) [x,y,z]=cylinder(r,10); surf(x,y,z). I can assign color with z surf(x,y,z,z) but I'm really after the visual change in radius. e.g red for radius lower than 3.63, yellow for 3.64 green for 3.65. (5 color ranges in total, or a color palette would be even better).
Below is 8000 radii used with z as color. I need to get the colors right, red where the radius is lowest of pipe's nominal ID.
Thank you!

채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!