Difference between () and ([])

2 次查看(过去 30 天)
Prabha Kumaresan
Prabha Kumaresan 2017-12-26
What is the difference C=rand(4,10) and C=rand([4,10])

回答(1 个)

KSSV
KSSV 2017-12-26
I don't think it makes any difference...both the cases you will get a random matrix of size 4X10...in fact [4,10] this needs a bit of more typing.
  3 个评论
Walter Roberson
Walter Roberson 2017-12-26
There is a very small difference in the time it takes to parse the arguments. There is no difference in the functionality.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Exploration 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by