How to Update matrix values
Mostrar comentarios más antiguos
I have a matrix[2 2:2 2]I want to update these four values one by one ie[3 3:3 3],[4 4:4 4],[5 5:5 5] like thgis I want to update ,,,how can i achieve this with script?
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 2 de En. de 2013
A = A + 1;
4 comentarios
Arun Badigannavar
el 2 de En. de 2013
Arun Badigannavar
el 2 de En. de 2013
Walter Roberson
el 2 de En. de 2013
If you want to see each updated value, you could remove the semi-colon from the addition
a(i) = a(i) + 1 %no semi-colon
Arun Badigannavar
el 2 de En. de 2013
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!