No BSD License  

Highlights from
zoom on 2d by doublicating

from zoom on 2d by doublicating by Nayef Nustafa
Zoom*2 by doublicating each piont on X & Y

largerby2(IM)
function BIG = largerby2(IM)

%Nayef M. Abukhoti
%This will enlarge the image by factor of 2, through doulicating of raws
%and columns.




% doublicating along the X-axis.

S = size(IM);


for i=1:1:S(1,1)
    
    for j=1:1:S(1,2)
        
        
        AX(i,(2*(j-1))+1)=IM(i,j);
        AX(i,(2*(j-1))+2)=IM(i,j);
                
    end 
    
end



% doublicating along the Y-axis.

SS = size(AX);

for k=1:1:SS(1,1)
    
    for l=1:1:SS(1,2)
        
        AXY ((2*(k-1))+1,l) = AX (k,l);
        AXY ((2*(k-1))+2,l) = AX (k,l);
                
    end 
    
end

BIG = AXY;

Contact us at files@mathworks.com