2017-04-09 65 views

回答

1

你可以嘗試這樣的事情。

[X,Y] = meshgrid(-1:0.1:1, -1:0.1:1); 
deltaColor = 1/size(X, 2); 
for i=1:size(X, 2) 
    plot(X(:, i),Y(:, i), 'Color', [deltaColor*i 0 0]) 
    hold on 
    plot(Y(:, i),X(:, i), 'Color', [0 deltaColor*i 0]) 
end 

它可能不是你正在尋找的,但你的問題不是那麼清楚。我希望你能夠將它應用到你的案例中。

enter image description here

+0

謝謝,我會讀到deltacolor文件和我會回到 –

+0

由於其工作完美! –