Community Profile

photo

Himanshu Gabhane


Last seen: 11 days ago Active since 2020

Statistics

  • First Answer

View badges

Content Feed

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

1 year ago | 0