adding new colormap to a saved set of colormaps

조회 수: 1 (최근 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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Orange에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by