Cody

Problem 42675. Get all corner elements from a matrix where dimension of matrix is always equal to or greater than 2.

if a given matrix a = [1 2 3;4 5 6]; so answer is going to be [1 3;4 6]

Solution Stats

68.55% Correct | 31.45% Incorrect
Last solution submitted on Oct 06, 2019

Problem Comments