Problem 2159. A SUBSREF variant that accepts the 'end'-operator.
55.56% Correct | 44.44% Incorrect
Last Solution submitted on Sep 23, 2021
Andrew Newell on 20 May 2017
Pity that eval is forbidden - I had quite an elegant solution using it.
Problem Recent Solvers5
Back to basics 21 - Matrix replicating
Sum the elements in either diagonal of a square matrix
More from this Author31
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!