MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   MATLAB中的[1 2]和[1,2]有什么区别? (https://www.labfans.com/bbs/showthread.php?t=23316)

poster 2019-12-10 20:30

MATLAB中的[1 2]和[1,2]有什么区别?
 
>> [1 2] ans = 1 2 >> [1 ,2] ans = 1 2 >> 看起来一样,是真的吗?



[B]回答:[/B]

不;没有区别。请参阅[URL="http://www.mathworks.com/access/helpdesk/help/techdoc/math/f1-84864.html"]此处[/URL]以获取更多信息:
[INDENT]在MATLAB中创建矩阵的最简单方法是使用矩阵构造函数运算符[] 。通过在方括号内输入元素(在下方显示为E ),在矩阵中创建一行。用逗号或空格分隔每个元素:

row = [E1, E2, ..., Em] row = [E1 E2 ... Em] [/INDENT]
[url=https://stackoverflow.com/questions/2644759]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 04:56

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.