Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

plotting using for loops

1 vue (au cours des 30 derniers jours)
Christopher
Christopher le 20 Fév 2013
Clôturé : MATLAB Answer Bot le 20 Août 2021
I have a matrix ,A, 364 x 24. I have a vector x=[0 1 2 3....23] (represting the hours of a day with 0 being 12am). What i want to be able to do is plot the first 24 samples vs x then store that graph (which will represent data in jan 1). then take the next 24 samples and plot that against x and save that plot and so on. What i have so far is
for k=1:364
plot(x,A(:,k));
xlabel('hours');
ylabel('price');
please help
utlimately, once this for loop is done, i would like to have a folder containing these 364 graphs so i can analyze them. I heard you can use a function like push button which will in turn turn to the next graph and so on. But i dont want to tbe limited to pushing buttons option. I just want to perform the for loop then later go to a folder all look at all the graphs at once. Can this be done? thanks ahead of time1

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by