Feeds
답변 있음
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
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
대략 6년 전 | 0
