Info

此问题已关闭。 请重新打开它进行编辑或回答。

plotting using for loops

3 次查看(过去 30 天)
Christopher
Christopher 2013-2-20
关闭: MATLAB Answer Bot 2021-8-20
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

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by