>> [1 2]
ans =
1 2
>> [1 ,2]
ans =
1 2
>>
看起来是一样的,是真的吗?
最佳答案
不;没有什么区别。请参阅here欲了解更多信息:
The simplest way to create a matrix in MATLAB is to use the matrix constructor operator,
[]
. Create a row in the matrix by entering elements (shown asE
below) within the brackets. Separate each element with a comma or space:row = [E1, E2, ..., Em] row = [E1 E2 ... Em]
关于matlab - MATLAB 中 [1 2] 和 [1 ,2] 有什么区别吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2644759/