geoplot(lat,lon) command error
古いコメントを表示
I am trying to plot a buoy trajectory profile across the ocean surface. I have the trajectory data in an NC file that I have uploaded to MATLAB however it seems as if my geoplot command is connecting my points vertically in the water column (the buoy collects data as deep as 2,000m as it rises to the surface) instead of the buoys breaching points along the surface. I was able to create a red line running through the points once, but never again. The command I have been using after I upload the file to MATLAB is:
lat=ncread(filename,'LATITUDE')
lon=ncread(filename,'LONGITUDE')
geoplot(lat,lon,'r','LineWidth',2)
geobasemap('landcover')
I attached the pictures as a reference so that hopefully someone can understand what my issue is. I added the arrows and numbers to the map with the solid red line as a guide to the buoy trajector after the map was created. I am also confused at how I was able to do it once but not again while using the same commands.
How can I recreate the map that has the solid line running through the points?
5 件のコメント
VICTOR ALMEIDA
2020 年 7 月 22 日
KSSV
2020 年 7 月 22 日
You canuse plot striaght away right?
VICTOR ALMEIDA
2020 年 7 月 22 日
KSSV
2020 年 7 月 22 日
First use geobasemap and then try plot using hold on.
VICTOR ALMEIDA
2020 年 7 月 22 日
採用された回答
その他の回答 (1 件)
KSSV
2020 年 7 月 22 日
Try:
geoplot(lat,lon,'r-','LineWidth',2)
3 件のコメント
VICTOR ALMEIDA
2020 年 7 月 22 日
KSSV
2020 年 7 月 22 日
Share the poins alone here.
VICTOR ALMEIDA
2020 年 7 月 22 日
カテゴリ
ヘルプ センター および File Exchange で Geographic Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

