Worldmap function is not working?

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.

Respuestas (1)

Steven Lord
Steven Lord el 18 de Nov. de 2018

1 voto

The worldmap function is part of Mapping Toolbox. Check the output of the ver function to see if you have this toolbox installed.

Categorías

Más información sobre Simulink Functions en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 18 de Nov. de 2018

Respondida:

el 18 de Nov. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by