Best solution, balancing readability and short size.
You got it bruh!
This answer isn't even accepted. Mathworks cares enough to make Cody, but not enough to actually maintain or monitor it lol.
@Chuck, True :|
Removing of whitespace improves the score by 9, this is getting ridiculous...
Hi Fumiaki, could you please explain how this code works?
I would have never done this way. Great job!
Sum of diagonal of a square matrix
06 - Matrix Equations 1
Length of a short side
Flip the vector from right to left
Create a vector
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