Matter with worldmap: Warning: Variable 'worldRegions' not found

1 回表示 (過去 30 日間)
Szabó-Takács Beáta
Szabó-Takács Beáta 2016 年 7 月 1 日
Dear All,
Until today morning I get error message if I use
worldmap('Europe');
Warning: Variable 'worldRegions' not found.
> In regionmap (line 29)
In worldmap (line 121)
Undefined function or variable 'worldRegions'.
Error in regionmap (line 30)
validRegions = worldRegions;
Error in worldmap (line 121)
ax = regionmap(mfilename, varargin);
I use Matlab R2015b. I chacked the set path and \toolbox\shared\maputils roles in the list. Can someone help me what should i do?
  1 件のコメント
Szabó-Takács Beáta
Szabó-Takács Beáta 2016 年 7 月 1 日
Sorry I want to write that until today morning the worldmap worked, but for the morning it hasn't worked.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2016 年 7 月 1 日
You possibly have a regions.mat on your path that is interfering with finding toolbox/map/mapdisp/private/regions.mat . The regions.mat file that it finds is expected to have a variable named WorldRegions and whichever regions.mat it is finding does not have that variable. Try
which -all regions.mat
to see which regions.mat is being found.
  1 件のコメント
Szabó-Takács Beáta
Szabó-Takács Beáta 2016 年 7 月 1 日
Thank you very much Walter! I wrote
which -all regions.mat
and I got
C:\Program Files\MATLAB\R2015b\toolbox\map\mapdisp\private\regions.mat
and now it works.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeElectrical and Computer Engineering についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by