matlab如何导入map,matlab添加M_map工具箱

首先试了matlab自带的worldmap,感觉画出来的图形不尽如人意,比较杂乱。如下图。

a4c26d1e5885305701be709a3d33442f.png

查阅了些资料,请教了Liangjing,一致推荐m_map。为了达到想要的效果,这次只要不再偷懒,下载M-Map工具箱(http://www.eos.ubc.ca/~rich/map.html)并进行安装。所幸过程比较顺利,现记录如下,回头把画出的效果图再添上。其他matlab的toolbox安装,也可参考进行。

----------------------------------------

M_map的User Guide教的,matlab安装目录请自行参考自己的电脑。

1、将M_map.zip工具箱内容解压缩,至'C:Program

Files/MATLABR2009a/toolbox/matlab/m_map'

2、找到'C:Program

Files/MATLABR2009a/toolbox/local/pathdef.m'文件,打开,并把1中的路径添加到该文件中,保存。

matlabroot,'toolboxmatlabplottools;', ...

matlabroot,'toolboxlocal;', ...

matlabroot,'toolboxsharedcontrollib;', ...

matlabroot,'toolboxshareddastudio;', ...

matlabroot,'toolboxmatlabdatamanager;', ...

matlabroot,'toolboxmatlabm_map',...

%这里不需加分号“;”

%%%

END ENTRIES %%%

3、运行 rehash toolboxcache 命令,完成工具箱加载

>>rehash toolboxcache

========以上,完成加载==============================

========以下,测试是否成功===========================

test1:运行

>>what m_map

得到的结果类似dos中的dir命令,即可。

M-files in directory C:Program

FilesMATLABR2009atoolboxmatlabm_map

Contents

m_grid

m_ll2xy

m_scale

m_coast

m_gshhs

m_lldist

m_tba2b

m_contour

m_gshhs_c

m_mag2geo

m_tbase

m_contourf

m_gshhs_f

m_patch

m_text

m_coord

m_gshhs_h

m_pcolor

m_track

m_demo

m_gshhs_i

m_plot

m_ungrid

m_elev

m_gshhs_l

m_plotbndry  m_usercoast

m_etopo2

m_hatch

m_proj

m_vec

m_fdist

m_idist

m_quiver

m_xy2ll

m_geo2mag

m_legend

m_range_ring  m_xydist

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值