matlab colordef,Color specification

本文详细介绍了MATLAB中指定图形颜色的三种方法:RGB三元组、短名称和长名称。RGB三元组是一种通过红、绿、蓝三个颜色通道的强度来定义颜色的方式,每个通道的值范围为0到1。此外,MATLAB还预设了八种颜色的短名称和长名称,如'yellow'、'magenta'等,方便快速设置颜色。
摘要由CSDN通过智能技术生成

Description

ColorSpec is not a function; it refers to

the three ways in which you specify color for MATLAB® graphics:

RGB triplet

Short name

Long name

The short names and long names are character vectors that specify

one of eight predefined colors. The RGB triplet is a three-element

row vector whose elements specify the intensities of the red, green,

and blue components of the color; the intensities must be in the range

[0 1]. The following table lists the predefined colors and their RGB

triplet equivalents.

RGB TripletShort

NameLong Name[1 1 0]yyellow

[1 0 1]mmagenta

[0 1 1]ccyan

[1 0 0]rred

[0 1 0]ggreen

[0 0 1]bblue

[1 1 1]wwhite

[0 0 0]kblack

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值