Input examples of m_map toolbox but image is not clear

조회 수: 7 (최근 30일)
Yingnan Liu
Yingnan Liu 2023년 12월 11일
답변: Arnav 2024년 11월 29일
m_proj('lambert','lon',[-10 20],'lat',[33 48]);
[CS,CH]=m_etopo2('contourf',[-5000:500:0 250:250:3000],'edgecolor','none');
m_grid('linestyle','none','tickdir','out','linewidth',3);
colormap([ m_colmap('blues',80); m_colmap('gland',48)]);
brighten(.5);
ax=m_contfbar(1,[.5 .8],CS,CH);
title(ax,{'Level/m',''}); % Move up by inserting a blank line
Unrecognized function or variable 'm_proj'.
Input the code in Matlab and the picture is serrate.
If someone have any ideas to look at. Thank You!

답변 (1개)

Arnav
Arnav 2024년 11월 29일
I was able to reproduce the issue you mentioned after installing the m_map toolbox. This might be due to the m_etopo2 function using a default dataset as indicated by this warning i encountered:
Warning: Cannot open /ocean/rich/more/mmapbase/etopo1/etopo2 !! \n Have you installed the Etopo2
database correctly?\n This (optional) database must be installed separately - see the M_Map user's
guide for instructions\n ----Using default elevation database instead
> In m_etopo2 (line 94)
In EEB551_LAB2 (line 2)
You can try installing the Etopo2 database to see if it resolves the low resolution image.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by