Spliting arrays into different arrays, and extract them as an array
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
SaiDileep Kola
2020-2-14
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?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!