plot(x,y,s”)——开关格式,开关量 字符串s设定曲线颜色和绘图方式, 使用颜色字符串的前1~3个字母,如 yellow--yel表示等。 或plot(x1,y1,S1’,x2,y2,’s2,.)
plot(x,y,’s’) —— 开关格式,开关量 字符串s设定曲线颜色和绘图方式, 使用颜色字符串的前1~3个字母,如 yellow—yel表示等。 或plot(x1,y1,’s1’,x2,y2,’s2’ ,…)
S的标准设定值如下 字母颜色标点 线型 y 黄色 点线 粉红 圈线 亮蓝 + ×线 大红 十字线 实线 gbwk 蓝色 星形线 白色 虚线 黑色 (-)点划线
S的标准设定值如下: 字母 颜色 标点 线型 y 黄色 · 点线 m 粉红 ○ 圈线 c 亮蓝 × ×线 r 大红 + +字线 g 绿色 - 实线 b 蓝色 星形线 w 白色 : 虚线 k 黑色 -·(--) 点划线
mat|ab6.1线形 [+o.x square diamond> pentagram hexagram square 正方形 diamond菱形 pentagram五角星 hexagram 角星
matlab6.1线形: [ + | o | * | . | x | square | diamond | v | ^ | > | < | pentagram | hexagram ] square 正方形 diamond 菱形 pentagram 五角星 hexagram 六角星
1.单窗口单曲线绘图 例1:=[0,0.480.84,1,0.91,0.6,0.14] [X1,X2,x3,×4,x5,X6,X7,] plot( x)
1. 单窗口单曲线绘图 例1:x=[0, 0.48,0.84,1,0.91,0.6,0.14] [ x1, x2, x3, x4, x5, x6, x7,] plot (x)
2.单窗口多曲线绘图 例2:t=0:pi/100:2pi; y=sin(t);y1=sin(t+0.25);y2=sin(t!0.5); plot(t, y, t,y1, t,y2) 0.8 6 0.4 o.2 y2 -0.2 -0.4
0 1 2 3 4 5 6 7 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 2. 单窗口多曲线绘图 例2:t=0:pi/100:2*pi; y=sin(t);y1=sin(t+0.25);y2=sin(t+0.5); plot(t,y,t,y1,t,y2) y y1 y2