how to define matirx series?
조회 수: 1 (최근 30일)
이전 댓글 표시
Dear community,
I want to define a matirx series whose each element is a matirx. For example,
a1 = randn(2,2);
a2 = randn(2,2);
a3 = randn(2,2);
...
an = randn(2,2);
I want to define
c = [a1, a2, a3, ..., an];
But the operator [] returns a combined matrix.
댓글 수: 0
답변 (1개)
Arif Hoq
2022년 3월 25일
square bracket returns horizontal concatenation of input argument. i guess you can use a cell array
c = {a1,a2,a3};
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!