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
转载于:https://blog.51cto.com/ccxxxx/1279284