How can i represent elevation (z) in different colors using plot function?
Show older comments
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
Accepted Answer
More Answers (1)
antonio
on 2 Oct 2015
0 votes
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
Categories
Find more on Polygons in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!