mlc (Matlab Colors)

版本 1.0.0 (1.1 KB) 作者: Jonah Pearl
Get the RGB values for the default MATLAB colors
10.0 次下载
更新时间 2020/7/22

查看许可证

Get the RGB values for the default MATLAB colors.
Input: mlc(x), where x is a 1xn or nx1 vector of integers from 1 to 9.
Output: an nx3 matrix where each row is an RGB value with the specified default MATLAB color.

matlab_colors = [0 0.4470 0.7410; % the matlab colors!
0.8500 0.3250 0.0980;
0.9290 0.6940 0.1250;
0.4940 0.1840 0.5560;
0.4660 0.6740 0.1880;
0.3010 0.7450 0.9330;
0.6350 0.0780 0.1840;
0.3 0.3 0.3;
0 0 0 ];

引用格式

Jonah Pearl (2024). mlc (Matlab Colors) (https://www.mathworks.com/matlabcentral/fileexchange/78510-mlc-matlab-colors), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

版本 已发布 发行说明
1.0.0