Worldmap does not work with MATLAB R2018b

3 views (last 30 days)
Dear MATLAB experts,
I installed the Mapping toolbox for my MATLAB R2018b and trying to use the WORLDMAP function, but it gives me an error:
>> worldmap world
Error using axesm (line 140)
Unrecognized property: Spheroid
Error in regionmap>constructMapAxesWorld (line 488)
ax = axesm(...
Error in regionmap (line 107)
h = constructMapAxes(latlim, lonlim, e);
Error in worldmap (line 122)
ax = regionmap(mfilename, varargin);
Thank you in advance!
  1 Comment
Mark Brandon
Mark Brandon on 3 Feb 2019
I don't get that error Tatiana.
I'm running 2018b:
MATLAB Version: 9.5.0.944444 (R2018b)
Mapping Toolbox Version 4.7 (R2018b)
The three lines of code in the help
worldmap('World')
load coastlines
plotm(coastlat,coastlon)
produce the image in the help
z_output.jpg
So I would guess you've an installation error?
good luck, Mark.

Sign in to comment.

Accepted Answer

Pruthvi Muppavarapu
Pruthvi Muppavarapu on 13 Feb 2019
Edited: Pruthvi Muppavarapu on 13 Feb 2019
Try any of the following:
1. Run "which -all" command to the handle to see if the command is shadowed in MATLAB search path .
2. Try adding "figure" before running the "worldmap" command
3. Re-install MATLAB and the issue was resolved.
  1 Comment
Tatiana Klimiuk
Tatiana Klimiuk on 14 Feb 2019
The third option helped, thank you!
I removed MATLAB completely from my computer and installed everything again. The Mapping Toolbox works perfectly now.

Sign in to comment.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!