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

1 回表示 (過去 30 日間)
Vedi Ghahremanyans
Vedi Ghahremanyans 2020 年 2 月 11 日
コメント済み: SaiDileep Kola 2020 年 2 月 14 日
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
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 ExchangeData Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by