Splitting matrix into arrays

15 ビュー (過去 30 日間)
Chase O'Melia
Chase O'Melia 2020 年 5 月 9 日
コメント済み: Chase O'Melia 2020 年 5 月 9 日
Hello,
how can I split a 2x1000 matrix into a 1x1000?

採用された回答

Robin Kirsch
Robin Kirsch 2020 年 5 月 9 日
I assume that you want to split a 2x1000 matrix into 2 1x1000 vectors.
A simple solution to do this is to extract each row, if A is your 2x1000 then you get the 1x1000 with
B = A(1,:) and C = A(2,:).
You can for-loop over this for x dimensional matrices
  1 件のコメント
Chase O'Melia
Chase O'Melia 2020 年 5 月 9 日
Exactly what I was looking for. Thanks!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by