surf colors with cylinder output
Show older comments
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!

Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!