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
4년 초과 전 | 6