worldmap not working

조회 수: 1 (최근 30일)
Dan
Dan 2012년 1월 6일
Hello,
I am just learning how to use the mapping toolbox, but the most basic example will not work for me:
worldmap('North America')
??? Undefined function or method 'fromDegrees' for input arguments of type
'char'.
Error in ==> eqdconic>eqdconicDefault at 41
mstruct.mapparallels = fromDegrees(mstruct.angleunits, [15 75]);
Error in ==> applyProjection at 10
outputs{1} = mproj.default(varargin{1});
Error in ==> eqdconic at 33
varargout = applyProjection(mproj, varargin{:});
Error in ==> defaultm at 41
mstruct = feval(mstruct.mapprojection,mstruct);
Error in ==> regionmap>constructMapAxesWorld at 530
mstruct = defaultm(projection);
Error in ==> regionmap at 103
h = constructMapAxes(latlim, lonlim);
Error in ==> worldmap at 113
ax = regionmap(mfilename, varargin{:});
Can anyone help me with this. I already double checked to make sure the mapping toolbox is on my Matlab path.
Thanks, Dan
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 1월 6일
Does
which -all fromDegrees
return anything for you? I would expect to see something under the mapping toolbox for it.
Which MATLAB version are you using?
Dan
Dan 2012년 1월 6일
It returns: 'fromDegrees' not found.
I'm using version 7.10.0.

댓글을 달려면 로그인하십시오.

답변 (1개)

Rob Comer
Rob Comer 2012년 1월 6일
Relative to your MATLAB root directory, the fromDegrees function should be located in toolbox/shared/maputils. This is true in all recent versions, including R2010a (which corresponds to MATLAB 7.10).
Is this folder on your path? It should be, if Mapping Toolbox is properly installed. Perhaps there is something wrong with your installation.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by