登录论坛

查看完整版本 : MatLab中的[A,B]和[A; B]有什么区别?


poster
2019-12-10, 20:30
% CAT(2,A,B) is the same as [A,B]. % CAT(1,A,B) is the same as [A;B]. 似乎我需要知道这一点才能了解cat行为。



回答:

[A,B] 是通过将B放在A的右边而形成的矩阵,而

[A;B] 是通过将B置于A下方而形成的矩阵。

还了解horzcat和vertcat 。



更多&回答... (https://stackoverflow.com/questions/2609355)