Problem 45502. Basic Operation with the middle number of odd matrix
- Take an odd matrix like 3-by-3
- Access the middle element of the matrix i.e in case of 3-by-3 matrix the index of the particular element is second row, second column.
- Now, sum the elements in its column to it and then subtract the elements in its row to it.
- What's the matrix with updated element.
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Muhammad Usman
on 8 May 2020
@William, the problem is not only to change the middle term but to do basic operations with it.
In the first suite 5 is the middle number, add 2 and 8 (column elements) and then subtract 4 and 10 (row elements), so 5+2+8-4-10 = 1
William
on 9 May 2020
Hi Muhammad,
Yes, I understand how the value x(2,2) was calculated, but why did the values of x(1,2) and x(3,2) change?
Binbin Qi
on 9 May 2020
I do not understand why all the element in the second column equal 1 in the first test suit?
Solution Comments
Show commentsProblem Recent Solvers28
Suggested Problems
-
2494 Solvers
-
792 Solvers
-
Convert a vector into a number
603 Solvers
-
1490 Solvers
-
Solve a System of Linear Equations
12695 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!