m_coast not working in m_map

7 vues (au cours des 30 derniers jours)
Add
Add le 24 Avr 2019
Commenté : Add le 24 Avr 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

Réponse acceptée

KSSV
KSSV le 24 Avr 2019
Change finite to isfinite
  1 commentaire
Add
Add le 24 Avr 2019
Many thanks ! Kudos to you.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by