reverse jet colours on my lines

19 vues (au cours des 30 derniers jours)
Yuktha Andie Ravinthiran
Yuktha Andie Ravinthiran le 17 Fév 2022
hold on
set(groot,'defaultLineLineWidth',1.5)
ex = xlsread(p2,'emission','E2:E37');
ey = xlsread(p2,'emission','C2:C361');
eyy = reshape(ey,[36,10])';
colors = jet(10);
hold on
for i = 1:10
plot(eyy(i,:), "color", colors(i,:))
end
hold off
I want the colour of the lines to be reversed so that the current blue line is red and current red line is blue

Réponse acceptée

Image Analyst
Image Analyst le 17 Fév 2022
colors = flipud(jet(10)); % Flip up down.

Plus de réponses (0)

Catégories

En savoir plus sur Colormaps dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by