爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 3007|回复: 1

[程序设计] MATLAB自定义colormap

[复制链接]

新浪微博达人勋

发表于 2017-10-31 22:53:02 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
本帖最后由 莫莫泡沫 于 2017-10-31 22:57 编辑

matlab 2016a版本
Saving the Modified Colormap
You can save the modified colormap using the colormap function.
After you have applied your changes, save the current axes colormap in a variable:
ax = gca;mycmap = colormap(ax);
To use this colormap in another axes, for example ax2, set the colormap for the axes to mycmap:
colormap(ax2,mycmap)
To save your modified colormap in a MAT-file, use the save command to save the mycmap workspace variable:
save('MyColormaps','mycmap')
To use your saved colormap in another MATLAB session, load the variable into the workspace and assign the colormap to the current axes:
ax = gca;load('MyColormaps','mycmap')colormap(ax,mycmap)







密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-11-1 01:26:44 | 显示全部楼层
{:eb502:}{:eb502:}
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表