adding new colormap to a saved set of colormaps

2 ビュー (過去 30 日間)
Mike Wilson
Mike Wilson 2016 年 11 月 2 日
コメント済み: Mike Wilson 2016 年 11 月 2 日
MATLAB newbie. Softball question...
I've got a custom colormap file ('mycolormaps'). It currently has a single custom colormap in it, but I want to add a couple more. When I create a new map and try to add that to existing 'mycolormap' file, I end up overwriting the original map with the new one. Here's what i'm doing.
load ('mycolormaps');
%create a new map - called let's say 'myNewGray'
save mycolormaps myNewGray;
This overwrites the original colormap in mycolormaps with myNewGray. There must be some similar command to append myNewGray to the mycolormaps file instead of overwriting?
Thanks!
Mike

採用された回答

Adam
Adam 2016 年 11 月 2 日
save( 'mycolormaps', 'myNewGray', '-append' )
This option is included in the help page:
doc save
  1 件のコメント
Mike Wilson
Mike Wilson 2016 年 11 月 2 日
Many thanks Adam. To paraphrase - RTFM!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOrange についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by