آيا اين درست تر است؟ البته كمي حروف در كپي جابجا شده . ممنون
کد:
f=zeros(1024,1024);
for m=1:20
if(mod(m,2)==0)%15
for n=1:15
f((m-1)*15+n,:)=1;
end
end
end
for s=1:20
if(mod(s,2)==0)%15
for t=1:15
f(:,(s-1)*15+t)=1;
end
end
end
colormap(gray)
imagesc(f)
size(f)