function [ ] = printfig( fig, name )
    % Prints figures
    
    units = 'centimeters'; 
    pos = [0 0 10 10];
    mode = 'Manual';
    
    
    fig.PaperUnits = units;
    fig.PaperPosition = pos;
    fig.PaperPositionMode = mode;
    fig.PaperSize = [pos(3),pos(4)];
    fpath = '../Document/img/';
    print( fig, fullfile(fpath,name), '-dpdf','-r0')
end

