Problem 42675. Get all corner elements from a matrix where dimension of matrix is always equal to or greater than 2.
64.86% Correct | 35.14% Incorrect
Last Solution submitted on May 04, 2023
Carl Witthoft on 11 Nov 2015
Sans test cases with rank 11 (or even 3), it's too easy to provide a solution which passes the test but fails for, say, dyadics. Or did the originator really mean to stick with tensors (rank 2) of arbitrary x and y dimension?
Solution CommentsShow comments
Problem Recent Solvers90
Change the sign of even index entries of the reversed vector
Determine the length of a string of characters
Finding perimeter of a rectangle
More from this Author3
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!