a problem with the function ncpolarm

조회 수: 11 (최근 30일)
Wenxin
Wenxin 2016년 7월 20일
답변: Chad Greene 2017년 6월 13일
I try to plot some Arctic map by using ncpolarm to initialize the mapping. The code is for instance,
s = load('coast.mat');
figure
ncpolarm('lat',66,'lon',0,'grid','label','noland');
latv=66:2:90;
lonv=-180:2:180;
t=rand(13,181)*100;
contourm(latv,lonv,t);
But it alwasys pops up this error,
Error using matlab.graphics.axis.Axes/set Children may only be set to a permutation of itself
Error in map.graphics.internal.restackMapAxes>moveToTop (line 85) set(ax,'Children',[h(:); c])
Error in map.graphics.internal.restackMapAxes (line 67) moveToTop(ax, [hNorthArrow; hScaleRuler; hGraticuleLabels; hGraticule])
Error in internal.mapgraph.GeographicContourGroup (line 58) map.graphics.internal.restackMapAxes(h)
Error in contourm (line 106) h = internal.mapgraph.GeographicContourGroup(ax, Z, R, levelList);
My matlab version is 2015b. Do anyone have experience to solve it?
thanks, Wenxin

답변 (1개)

Chad Greene
Chad Greene 2017년 6월 13일
I think the simplest solution, which is also probably the least prone to errors, is to use Arctic Mapping Tools instead of Matlab's Mapping Toolbox or ncpolarm.

카테고리

Help CenterFile Exchange에서 Oil, Gas & Petrochemical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by