photo

Naitikkumar Darji


Active since 2018

Followers: 0   Following: 0

Statistics

  • First Answer

View badges

Feeds

View by

Question


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 ago | 1 answer | 0

1

answer