Community Profile

photo

Himanshu Gabhane


Last seen: 2 years ago Active since 2020

Followers: 0   Following: 0

Statistics

  • First Answer

View badges

Feeds

View by

Answered
if we enter n rows and m colums and gets the output of 2n rows and 2m columns
function out=blocks(n,m) out=zeros([n m]*2); out(end/2+1:end,1:end/2)=1; out(1:end/2,end/2+1:end)=1; end

4 years ago | 0