Spliting arrays into different arrays, and extract them as an array
1 view (last 30 days)
Show older comments
So, I have this code:
K=3:8
for N = 0:K:9 ; f_1(N+1:N+K)=R1(N+1:N+K).struct.fstat.f;end
A = yr(5:12);
B = f_1(1:8);
yr1_f = xcorr(A,B);
figure(1),plot(yr1_f)
----------------
and when I excute, it gives me an error that my output is 3 numbers and from curly brace or dot indexing it can't give out 3 outputs.
My question is how can I modify the f_1 function so I can get my outputs as three number.
Thank you.
1 Comment
SaiDileep Kola
on 14 Feb 2020
Coudn't figure out what you are trying to do, at the first go,
what are you trying to do with this N = 0:K:9 with K = 3:8 and what does it mean?
Answers (0)
See Also
Categories
Find more on Data Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!