Muhammad Barkhaya
Followers: 0 Following: 0
Feeds
已回答
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 neces
function [a,b,c,d]=corners(x) a=x(1,1) b=x(1,end) c=x(end,1) d=x(end,end) end
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 neces
function [a,b,c,d]=corners(x) a=x(1,1) b=x(1,end) c=x(end,1) d=x(end,end) end
5 years 前 | 6