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

36 次查看(过去 30 天)
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?

采纳的回答

James Tursa
James Tursa 2020-2-13
M = your 13x13 matrix
M(1,2) = M(1,2) + 1;
  1 个评论
sreesoumya cheppalli
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by