What is a Double Array
조회 수: 49 (최근 30일)
이전 댓글 표시
Concept question:
What is a 20x10x3 double array?
Thanks,
Amanda
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2012년 8월 20일
편집: Azzi Abdelmalek
2012년 8월 20일
a=[1 2;3 4]; is 2x2 double array % double is a class
a =
1 2
3 4
if you have 3 matrix
a=[1 2;3 4], b=[3 5;6 7]; c=[7 8;9 8] % for example
% you can put them in one array 2x2x3
x(:,:,1)=a;
x(:,:,2)=b;
x(:,:,3)=c;
%and the result will be
x(:,:,1) =
1 2
3 4
x(:,:,2) =
3 5
6 7
x(:,:,3) =
7 8
9 8
댓글 수: 0
추가 답변 (1개)
Samuel Gray
2021년 11월 3일
"What is a M,N... double array"
...it's an array of doubles, DP values
had me confused for a moment there, myself
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!