m_coast not working in m_map

7 ビュー (過去 30 日間)
Add
Add 2019 年 4 月 24 日
コメント済み: Add 2019 年 4 月 24 日
When I try to plot coastlines and map using m_map toolbox, it won't work !!! I am using Matlab 2014a and m_map version v1.4. I use the following code
{load coast
m_proj('mercator','long',[74 96],'lat',[05 28 ]);
axesm('MapProjection','mercator','MapLatLimit',[05 28],'MapLonLimit',[74 96]);
framem
m_coast('patch',[0.7 0.7 0.6]);
m_grid('box','fancy','tickdir','in');}
It shows error as following
{Undefined function 'finite' for input arguments of type 'double'.
Error in mu_util>m_clip (line 84)
indx(I(finite(Yc(I))))=0;
Error in mu_util (line 26)
[varargout{1},varargout{2}]=m_clip(varargin{:});
Error in mu_coast (line 173)
[X,Y]=mu_util('clip','on',X,xl(1),X<xl(1),Y);
Error in m_coast (line 28)
mu_coast('default',varargin{:},'tag','m_coast');
Error in Phailin_Lightning_GPS (line 40)
m_coast('patch',[0.7 0.7 0.6]);}
what might be the problem ? Any suggestions are welcome.
Thanks

採用された回答

KSSV
KSSV 2019 年 4 月 24 日
Change finite to isfinite
  1 件のコメント
Add
Add 2019 年 4 月 24 日
Many thanks ! Kudos to you.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by