看板Programming
标 题[问题]MATLAB的plot如何自行选择颜色
发信站月光海洋BBS (Thu Sep 20 15:26:46 2007)
转信站ptt!ctu-reader!news.nctu!mobbs
请问一下
MATLAB的plot指令
若要指定颜色的话 书上都是写说要加入字串'r','b',...等来指定颜色
可是我现在想在回圈里面一次用plot画很多条线,然後每条线都用不同颜色
譬如说现在要划四条"不同颜色"的曲线在同一张图上
hold on
for i = 1:4
plot(.....)
end
hold off
请问要怎麽在回圈里面随机指定plot不同的颜色?
谢谢
--
◣ ███ ███ ☆ Post by only39
◢█ ▉▉█ █▇█ ★ From 59-127-64-104.HINET-IP.hinet.net
◥█◤ ﹉ ﹍ ﹋ 月光海洋BBS 《mobbs.stut.edu.tw》 163.26.220.130