![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/14094342_1541740951294_DEF.jpg)
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