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

조회 수: 4 (최근 30일)
sreesoumya cheppalli
sreesoumya cheppalli 2020년 2월 13일
댓글: sreesoumya cheppalli 2020년 2월 16일
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
sreesoumya cheppalli 2020년 2월 16일
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에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by