3
% CAT(2,A,B) is the same as [A,B].
% CAT(1,A,B) is the same as [A;B].
似乎我需要知道这个以了解cat
是做什么的。MatLab中的[A,B]和[A; B]有什么区别?
% CAT(2,A,B) is the same as [A,B].
% CAT(1,A,B) is the same as [A;B].
似乎我需要知道这个以了解cat
是做什么的。MatLab中的[A,B]和[A; B]有什么区别?
[A,B]
是通过将B到A的右侧形成的基质,而
[A;B]
是通过将乙下面A.
形成的基质也了解horzcat
和vertcat
。
[A, B] does col cat
[A; B] does row cat
如:
x = [1, 2, 3];
y = [7, 8, 9];
[x, y] == > [1, 2, 3, 7, 8, 9]
becomes a 1x6 array
[x; y] == > [1, 2, 3]
[7, 8, 9]
becomes a 2x3 array
只是尝试在Matlab和开放ANS看到这么MATLAB中的每个操作员可被视为矩阵操作的差异
? – Gtker 2010-04-09 17:11:36