Filter löschen
Filter löschen

Plot Lat, Long, and Temperature as a Contour Plot

2 Ansichten (letzte 30 Tage)
Amanda
Amanda am 21 Aug. 2012
Kommentiert: Lindsay Anderson am 31 Jan. 2018
I am really at a stand still -- thinking it would be easy.
I have 3 arrays - Latitude, Longitude, and Temperature,
and at each data point or location I want to plot the temperature
as a contour plot.
So at 45 123 the temperature is 73.
Sample of Values:
Latitude = [45 45 67;
34 31 54;
60 63 61]
Longitude = [123 121 117
114 132 119
122 135 134]
Temp = [73 75 75
73 67 72
82 78 80]
Thanks, Amanda
  1 Kommentar
Lindsay Anderson
Lindsay Anderson am 31 Jan. 2018
I would also like to do this, but with water depth data for each lat long coordinate

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 21 Aug. 2012
Bearbeitet: Azzi Abdelmalek am 21 Aug. 2012
plot3(Latitude(:),Longitude(:),Temp(:))
xlabel('latitude'),ylabel('longitude'),zlabel('temperature');grid
OR
mesh(Latitude,Longitude,Temp)
xlabel('latitude'),ylabel('longitude'),zlabel('temperature');grid

Weitere Antworten (0)

Kategorien

Mehr zu Contour 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!

Translated by