Problem 44739. Return all matrix elements except elements on diagonal
Consider a given Matrix
A=[a b c; d e f; g h i]
then return a row vector T such that it contains all the Elements of Matrix A except the Elements on the diagonal.
So
T=[b c d f g h]
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers50
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15610 Solvers
-
184 Solvers
-
728 Solvers
-
Change the first and last diagonal element of the identity matrix to zero
153 Solvers
-
451 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!