Difference between () and ([])
1 回表示 (過去 30 日間)
古いコメントを表示
What is the difference C=rand(4,10) and C=rand([4,10])
0 件のコメント
回答 (1 件)
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
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 Center および 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!