How can I plot the values of a vector in colors: 2d position plot plus color.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
giacomo labbri
am 26 Mai 2020
Bearbeitet: darova
am 26 Mai 2020
Hi,
I would like to plot a position (standard 2D plot with X and Y corresponding to logitude and latitude values) and color the resulting line according to the values of a third vector (that represent temperature). All vector have the same lenght. Any advice on how to do it?
More Details:
I have three vectors. For example:
longitude=[52,50,60]
latitude=[10,15,20]
temp=[20,18,24]
I would like to have a 2D plot with a line give by the vectors longitude and latitude and the color of the line given by the vector temp.
Thanks in advance :)
1 Kommentar
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Scatter Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!