Info

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

How to set a dynamic loop

2 次查看(过去 30 天)
Hinde essmahi BOUZIANE
关闭: Stephen23 2019-7-2
I have an array of 85 doubles and i want to browse the array 9 by 9 (ie: for i=1:9).I want to plot then the results in a figure (3*3).
figure;
for j=1:9
BinData=ExtractContinuousData([],Info,[7],Start(j),End(j),[]);
[S1,t,f]=mtspecgramc(BinData);
subplot(3,3,j)
plot (S1,t,f);
end
%Start and End are the arrays that contains the 85 doubles each
But the problem is I just can plot the first 9 elements.How can I change each time to see the others elements?

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by