How can I add 1 to a particular element in a matrix?

40 visualizaciones (últimos 30 días)
Suppose I have a matrix of dimension 13*13 and I would like to add 1 to element of first row -second column , how can I add 1 to that element?

Respuesta aceptada

James Tursa
James Tursa el 13 de Feb. de 2020
M = your 13x13 matrix
M(1,2) = M(1,2) + 1;
  1 comentario
sreesoumya cheppalli
sreesoumya cheppalli el 16 de Feb. de 2020
Thank you so much for answering my question. Its was really helpful. I could use the same command with change in sign for subtraction operation.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays 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