m_coast not working in m_map

7 visualizaciones (últimos 30 días)
Add
Add el 24 de Abr. de 2019
Comentada: Add el 24 de Abr. de 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

Respuesta aceptada

KSSV
KSSV el 24 de Abr. de 2019
Change finite to isfinite
  1 comentario
Add
Add el 24 de Abr. de 2019
Many thanks ! Kudos to you.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by