Can you define a matrix A (3x6) consisting of matrices B (3x3) and C (3x3) and then call these in such a way that
A = [ B ; C ]
A (1) = B and A (2) = C
Or will you always have to write A(1:3,:) to get B?

 採用された回答

Amit
Amit 2014 年 2 月 3 日
編集済み: Amit 2014 年 2 月 3 日

0 投票

You can have cell like this:
B = rand(3);
C = rand(3);
A{1} = B;
A{2} = C;

1 件のコメント

Ellen
Ellen 2014 年 2 月 3 日
Made my day! Thanks!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

質問済み:

2014 年 2 月 3 日

コメント済み:

2014 年 2 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by