mycolor(colorcode, selectplate)

버전 1.2.0.0 (6.01 KB) 작성자: Wei-Ting Lin
Color selector: generates a 3-number vector code for a color. Can be used in plotting functions.
다운로드 수: 306
업데이트 날짜: 2015/11/21

라이선스 보기

Color selector: generating a 3-number vector code for a color.
Detailed documentation and examples of usage please see: https://github.com/weitingwlin/matlabutility/blob/master/documents/mycolor.md
Syntax

code = mycolor(colorcode, selectplate)

colorcode: integer (>1), selecting from the color plate:
e.g. colorcode = 3 returns [ 0 0.2000 0.6000], the code for dark blue from the default plate 'color'
other usages :
colorcode = 0 (default): will display the color plate assigned in a new figure
colorcode = -1 ; return the colormap (3 * ?) matrix, specified in [selectplate]
colorcode is a string (passed to selectplate), return colormap (as colorcode = -1);
selectplate: a string, assign the plate you want to chose from
'color': default; the plate with discrete color; type mycolor(0) for detail
'redblue': a red to blue bipolor scale; type mycolor(0,'redblue') for detal
'gray': a gray scale; type mycolor(0,'redblue') for detail

인용 양식

Wei-Ting Lin (2026). mycolor(colorcode, selectplate) (https://kr.mathworks.com/matlabcentral/fileexchange/48138-mycolor-colorcode-selectplate), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2014a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Color and Styling에 대해 자세히 알아보기
태그 태그 추가
버전 게시됨 릴리스 정보
1.2.0.0

Add documentation, add usage to return colormap
Edit: display color plate

1.1.0.0

Make a function [mycolor] for more convinient usage. Display the map in a new figure if input color code is 0.
Edit description.

1.0.0.0