Spliting arrays into different arrays, and extract them as an array

1 Ansicht (letzte 30 Tage)
Vedi Ghahremanyans
Vedi Ghahremanyans am 11 Feb. 2020
Kommentiert: SaiDileep Kola am 14 Feb. 2020
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 Kommentar
SaiDileep Kola
SaiDileep Kola am 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?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by