MATLAB: How to apply summation to one element of a matrix matrix If I have a matrix A that is 3×3 and I want to add a number to element A(3,3) only, how can I do that? Best Answer Omar, use A(3,3) = A(3,3) + num; Related SolutionsMATLAB: Apply condition on Matrix Just use logical indexing "==" to see the values equal 1 and use nnz() and then use >= T if you get 1 it's true else false.help ==help nnzhelp >= MATLAB: Summation sum() does summation.I cannot tell from from example exactly what you are trying to sum. Related QuestionHow to replace the element in matrix
Best Answer