Input examples of m_map toolbox but image is not clear

7 Ansichten (letzte 30 Tage)
Yingnan Liu
Yingnan Liu am 11 Dez. 2023
Beantwortet: Arnav am 29 Nov. 2024
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!

Antworten (1)

Arnav
Arnav am 29 Nov. 2024
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.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by