Basically the same as Problem 1158
only the odds.
Works for current test suite, but not in general.
Try adding an even sized matrix (magic(6), for instance) to the test suite. If the two diagonals don't share any points, a lot of these solutions won't work.
First time I see this notation.
Is my wife right? Now with even more wrong husband
05 - Vector Equations 2
05 - Vector Equations 3
Find nth maximum
Square a Number
Back to basics - array operations
Create a matrix with difference of each row of input matrix
Find offset of an element of a multi dimensional matrix
Who is the baby and who is the daddy in this family?
Back to basics - mean of corner elements of a matrix
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office