Problem 1508. Change the sign
Given a matrix x, return one with each diagonal element replaced by its absolute value and the largest element in absolute value of the off-diagonal elements in its row...
Solution Stats
Problem Comments
-
2 Comments
The title and description of this problem could use some tweaking in my opinion. For instance, it should say the largest element in absolute value *of the off-diagonal elements* in its row.
Done. Thanks Matt!
Solution Comments
Show commentsProblem Recent Solvers48
Suggested Problems
-
Find state names that start with the letter N
1403 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1952 Solvers
-
Relative ratio of "1" in binary number
1558 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
856 Solvers
-
Calculate distance travelled when given radius and rotations
237 Solvers
More from this Author13
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!