Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

plotting using for loops

1 Ansicht (letzte 30 Tage)
Christopher
Christopher am 20 Feb. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 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

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by