Difference between () and ([])
Afficher commentaires plus anciens
What is the difference C=rand(4,10) and C=rand([4,10])
Réponses (1)
KSSV
le 26 Déc 2017
0 votes
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 commentaires
Prabha Kumaresan
le 26 Déc 2017
Modifié(e) : Walter Roberson
le 26 Déc 2017
Walter Roberson
le 26 Déc 2017
There is a very small difference in the time it takes to parse the arguments. There is no difference in the functionality.
Prabha Kumaresan
le 26 Déc 2017
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!