Difference between () and ([])
古いコメントを表示
What is the difference C=rand(4,10) and C=rand([4,10])
回答 (1 件)
KSSV
2017 年 12 月 26 日
0 投票
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 件のコメント
Prabha Kumaresan
2017 年 12 月 26 日
編集済み: Walter Roberson
2017 年 12 月 26 日
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.
Prabha Kumaresan
2017 年 12 月 26 日
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!