フィルターのクリア

How to extract a matrix from a series matrix in matlab?

2 ビュー (過去 30 日間)
yang-En Hsiao
yang-En Hsiao 2019 年 2 月 9 日
コメント済み: Stephen23 2019 年 2 月 9 日
How to extract a matrix from a series matrix in matlab? I mean
F_1,F_2,F_3 and F_4 are all 4*4 square matrix,now i want to extract F_2 from the F_K,what is the code should i write? F_K(2)?
F_K=[F_1 F_2 F_3 F_4];

採用された回答

madhan ravi
madhan ravi 2019 年 2 月 9 日
Store it as a cell array:
F_K={F_1 F_2 F_3 F_4};
% ^---------------^---- note the brackets
F_K{2}
  1 件のコメント
Stephen23
Stephen23 2019 年 2 月 9 日
Or, keeping the data in a numeric array:
A = cat(3,F_1,F_2,F_3,F_4);
A(:,:,4)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by