reverse jet colours on my lines

18 次查看(过去 30 天)
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

采纳的回答

Image Analyst
Image Analyst 2022-2-17
colors = flipud(jet(10)); % Flip up down.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by