How can i represent elevation (z) in different colors using plot function?
显示 更早的评论
I' am plotting distance (h) which is the x-axis against elevation (z)which is y-axis using the plot function in MATLAB.
The output figure i get is a single red line. But i want to represent the single line in different colors according to elevation with a color bar
cheers
采纳的回答
更多回答(1 个)
antonio
2015-10-2
0 个投票
sorry may question i think is simpler but i don't know how to do it, i have let's say 10 orbits in the same figure and each orbit have a different energy level, i want that each line with a different colour based on the energy and the same as colourmap jet..thanks for the answer
类别
在 帮助中心 和 File Exchange 中查找有关 Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
