For loop color plot

2 visualizaciones (últimos 30 días)
Prasad Joshi
Prasad Joshi el 28 de En. de 2022
Editada: Prasad Joshi el 10 de Feb. de 2022
I am developing for loop for importing the data from excel and plotting but I am getting confusion in changing the colors ...How should I change the color also for did condition i,e for first red , second blue and so on ...I tried to used 2 for loops one for color and one for loading file....Can someone please help me in this ..thank you in advance
e=xlsread(' all values.xlsx');
time=Temps';
subplot(1,3,1)
for m= 1:3
plot(time,e(:,m));
hold on
xlim([0 200])
xlabel('time')
ylabel('CHC emission')
end
  5 comentarios
Prasad Joshi
Prasad Joshi el 28 de En. de 2022
Sir the code work Thank you there was error on my side sorry sir ...Thnk you once again for your help
Prasad Joshi
Prasad Joshi el 10 de Feb. de 2022
Editada: Prasad Joshi el 10 de Feb. de 2022

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Bar Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by