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

조회 수: 2 (최근 30일)
Omar Galil
Omar Galil 2015년 4월 8일
댓글: Omar Galil 2015년 4월 8일
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?

채택된 답변

Mischa Kim
Mischa Kim 2015년 4월 8일
Omar, use
A(3,3) = A(3,3) + num;

추가 답변 (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