Input examples of m_map toolbox but image is not clear

6 vues (au cours des 30 derniers jours)
Yingnan Liu
Yingnan Liu le 11 Déc 2023
Réponse apportée : Arnav le 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!

Réponses (1)

Arnav
Arnav le 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.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by