How can I apply summation to one element of a matrix?

1 visualización (últimos 30 días)
Omar Galil
Omar Galil el 8 de Abr. de 2015
Comentada: Omar Galil el 8 de Abr. de 2015
If I have a matrix A that is 3x3 and I want to add a number to element A(3,3) only, how can I do that?

Respuesta aceptada

Mischa Kim
Mischa Kim el 8 de Abr. de 2015
Omar, use
A(3,3) = A(3,3) + num;

Más respuestas (0)

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by