![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/11407437_1542215301004_DEF.jpg)
Naitikkumar Darji
自 2018 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
i want to get top right n x n matrix out of Nx N, I programmed it in following way but i got answer two times. so what is my mistake?
a = top_right(N,n) [j , k] = size(N); a = N([1:1:j-(j-n) , 1:1:k-(k-n)],1:n); end
5 years 前 | 1 个回答 | 0