n=10; %n types of colors in hsv;
cc=hsv(n);
figure;
hold on;
for i=1:12
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;
end
原创文章,作者:3628473679,如若转载,请注明出处:https://blog.ytso.com/192525.html