how to asign 2 dimesion array to 3 dimension array if it is not possible then how can i assign each 2 dimension array to 3 dimension array in for loop

how to asign 2 dimesion array to 3 dimension array if it is not possible then how can i assign each 2 dimension array to 3 dimension array in for loop

 採用された回答

Jan
Jan 2012 年 5 月 20 日
One element of an array can contain one element only. This is the definition of "element".
Perhaps you are looking for a cell:
A{1} = [1 3 5];
A{2} = [5 8 11];
B{1} = [1, 3, 5; 5, 8, 11];
These basics are explained exhaustively in the "Getting Started" chapters of the documentation.

その他の回答 (1 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

質問済み:

2012 年 5 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by