Hi everyone! I want to plot current vectors along a line (coordinates given by lat and lon) and corresponding map in the background. Here's my code:
geoplot([44.392186 44.393524],[8.930812 8.931615],'w:')
geolimits([44.390 44.396],[8.928 8.934])
x = table2array(FData(:,4)); % x - longitudes stored in the table 'FData', column 4
y = table2array(FData(:,3)); % y - latitudes stored in the table, column 3
u = table2array(FData(:,7)); % u - horizontal extend (delta longitude), column 7
v = table2array(FData(:,6)); % y - vertical extend (delta latitude), column 6
quiverm(x, y, u, v,'.');
And here's the error: Not a map axes.
(Error using gcm (line 25) Not a map axes.)
(Error in quiverm (line 88) mstruct = gcm;)
I am very new to MATLAB and simply getting lost in this. Wasted quite a lot of time on trying things, but didn't work out. I'd appreciate any practical advice to solve this! Thanks much!
PS. Matlab version R2020a