Difference between () and ([])
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
What is the difference C=rand(4,10) and C=rand([4,10])
0 comentarios
Respuestas (1)
KSSV
el 26 de Dic. de 2017
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 comentarios
Walter Roberson
el 26 de Dic. de 2017
There is a very small difference in the time it takes to parse the arguments. There is no difference in the functionality.
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!