【MATLAB】畫圖使用調色板實現自動線條顏色的方法

n=10; %n types of colors in hsv;ide

cc=hsv(n);it

figure; io

hold on;event

for i=1:12class

plot(result(1,:), 'color', cc(mod(i,n)+1, :)); %mod(i,n) is to prevent color from exceeding hsv dimensions, +1 because hsv(0) has no definition;im

enddi

相關文章
相關標籤/搜索