m_coast not working in m_map

7 visualizzazioni (ultimi 30 giorni)
Add
Add il 24 Apr 2019
Commentato: Add il 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

Risposta accettata

KSSV
KSSV il 24 Apr 2019
Change finite to isfinite

Più risposte (0)

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by