Worldmap function is not working?

6 次查看(过去 30 天)
Carter Squires
Carter Squires 2018-11-18
回答: Steven Lord 2018-11-18
I'm trying to create a simple map displaying the locations of various climate monitoring stations, using the following code:
%%
figure(4)
clf
worldmap world
load coastlines
plotm(coastlat,coastlon,'k-')
loc=find(in_Tropics_mask);
plotm(metadata.Lat(loc),metadata.Lon(loc),'k.','markersize',15)
However, I keep getting the following error:
Undefined function 'worldmap' for input arguments of type 'char'.
Any help would be appreciated.

回答(1 个)

Steven Lord
Steven Lord 2018-11-18
The worldmap function is part of Mapping Toolbox. Check the output of the ver function to see if you have this toolbox installed.

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by