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