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 版本兼容性
平台兼容性
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 |