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

 채택된 답변

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 Exchange에서 Loops 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