Difference between () and ([])

回答 (1 件)

KSSV
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
Prabha Kumaresan 2017 年 12 月 26 日
編集済み: Walter Roberson 2017 年 12 月 26 日
Ok .I would like to check is there any specific difference between them (4,10) and ([4,10]) other than the random matrix of size.
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.
Prabha Kumaresan
Prabha Kumaresan 2017 年 12 月 26 日
ok

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

質問済み:

2017 年 12 月 26 日

コメント済み:

2017 年 12 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by