What is a Double Array
79 次查看(过去 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 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!