
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Here you will find solved tasks for MATLAB
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Corner Case Write a function called corners that takes a matrix as an input argument and returns four outputs: the elements at its four corners in this order: top_left , top_right , bottom_left and bottom_right. (Note that loops and if-statements are neither necessary nor allowed as we have not covered them yet.) See an example run below:
[a, b, c, d] = corners([1 2; 3 4]) a = 1 b = 2 c = 3 d = 4