How can I draw 2D figure with 2D latitude and longitude?
4 views (last 30 days)
Show older comments
there is command imagesc, but this draws figure with 1D lat, and long.
However, my geocoordinate has 2D variation in lat, and long.
For example, my lat (9x 4) is as follows:
NaN NaN NaN NaN
NaN NaN NaN NaN
NaN NaN NaN NaN
NaN NaN 51.5079078674316 51.5444183349609
NaN 51.5270652770996 51.5122222900391 51.5315589904785
NaN 51.5362052917481 51.5751953125000 51.5271835327148
NaN 51.5258293151856 51.4314651489258 51.4981422424316
51.5149536132813 51.5499992370606 51.5009613037109 51.5097427368164
51.5128784179688 51.5015411376953 51.5305976867676 51.5029144287109
long also has (9x4).
How can I draw data in 2D array (size: 9x4) with lat, lon in 2D array ???
For example, please see below.
https://images.app.goo.gl/DUc2XpF6e9vt13QW6
0 Comments
Answers (1)
Yongjian Feng
on 2 Nov 2021
Did you try reshape? Does it give you the result you want?
lat = ones(9, 4); % your lat
lon = ones(9, 4); % your lon
lat1D = reshape(lat, 1, 36);
lon1D = reshape(lon, 1, 36);
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!