m_proj error with strcmp(map_projection...
이전 댓글 표시
Error using strcmp Too many input arguments.
Error in m_proj (line 105) if strcmp(MAP_PROJECTION.version.Name,'Octave')
댓글 수: 6
KALYAN ACHARJYA
2018년 9월 28일
Code?
ANKUR KUMAR
2018년 9월 28일
Please attach the your codes too to get help in an effective way.
Chad Greene
2018년 10월 17일
Note: the m_proj function is part of M_Map, not Matlab's Mapping toolbox.
Fernand ASSENE
2019년 5월 12일
Hello everyone. I got the same problem as Tumelo Maja :
Error using strcmp
Too many input arguments.
Error in m_proj (line 105)
if strcmp(MAP_PROJECTION.version.Name,'Octave')
since i started to use m_map 1.4j (released May/2018).
i tried to go back to older versions, but the problem remains the same.
This is my code :
%plot results
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ax1 = subplot(4,2,[1 2 5 6]) %PV ertel
m_proj('mercator','lon',[0 12],'lat',[0 11])
m_pcolor(lonpv,latpv,PV(:,:,Kplot)'), shading flat, caxis([-2e-7 2e-7])
ax11 = colorbar;
title(ax11,{'PV (s^-^1 m^-^1)'}); colormap(ax1,bluewhitered(1024));
hold on
m_contour(lonpv,latpv,PV(:,:,Kplot)',50,'k')
hold off
title('PV Ertel');xlabel('Longitude (°E)');ylabel('Latitude (°N)')
ax2 = subplot(4,2,[3 4 7 8]) % PV rescaled
m_proj('mercator','lon',[0 12],'lat',[0 11])
m_pcolor(lonpv,latpv,PV_r(:,:,Kplot)'), shading flat, caxis([-2e-4 2e-4])
ax22 = colorbar;
title(ax22,{'PV_r (s^-^1 m^-^1)'}); colormap(ax2,bluewhitered(1024));
hold on
m_contour(lonpv,latpv,PV(:,:,Kplot)',50,'k')
hold off
title('PV rescaled');xlabel('Longitude (°E)');ylabel('Latitude (°N)')
In attached (photo), another use of m_map toolbox function with the same error massage.

Thank's to all for further help and answers !!!
Rik
2019년 5월 13일
I think you are better off posting your own question. Before you do, read the advice here: https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Walter Roberson
2019년 5월 13일
You are using an old version. The current m_proj from https://www.eoas.ubc.ca/~rich/map.html#download has that code at line 140.
In the meantime, please show us the result you get from executing
v = ver('matlab')
There were some obscure cases in which ver could report more than one thing for MATLAB
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!