function [a, b, c, d] = corners(M)
    a = M(1, 1);
    b = M(1, end);
    c = M(end, 1);
    d = M(end, end)
end

anishLearnsToCode
github-repos/MATLAB/anishLearnsToCode-introduction-to-programming-with-matlab/introduction-to-programming-with-matlab-4eb0dfab3f41b8a20d890e8d01a9e9b7463de410/week-4/corners.m
introduction-to-programming-with-matlab
github-repos/MATLAB/anishLearnsToCode-introduction-to-programming-with-matlab
4eb0dfab3f41b8a20d890e8d01a9e9b7463de410