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;

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating 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