The initialisation of this matrix which the colon operator
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
if my matrix is: B = [ 0 4 8 12 16 20 24 28 32 36 40]
would the correct initialisation be: B=0:4:20??
0 comentarios
Respuestas (1)
Walter Roberson
el 2 de Dic. de 2015
No, but you are headed in the right direction. You will immediately see the problem when you try your code.
0 comentarios
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!