Difference between () and ([])

Respuestas (1)

KSSV
KSSV el 26 de Dic. de 2017

0 votos

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

Prabha Kumaresan
Prabha Kumaresan el 26 de Dic. de 2017
Editada: Walter Roberson el 26 de Dic. de 2017
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 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.
Prabha Kumaresan
Prabha Kumaresan el 26 de Dic. de 2017
ok

Iniciar sesión para comentar.

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 26 de Dic. de 2017

Comentada:

el 26 de Dic. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by