m_coast not working in m_map

7 Ansichten (letzte 30 Tage)
Add
Add am 24 Apr. 2019
Kommentiert: Add am 24 Apr. 2019
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

Akzeptierte Antwort

KSSV
KSSV am 24 Apr. 2019
Change finite to isfinite
  1 Kommentar
Add
Add am 24 Apr. 2019
Many thanks ! Kudos to you.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by