function exportview()
    global h_mainfig;
    
    userdata = get(h_mainfig, 'userdata');
    
    set(h_mainfig, 'PaperPositionMode', 'auto');
    print(h_mainfig, '-dmeta', '-noui');
    
    showmsg(h_mainfig, 'message', 'Current view exported to system cl);

return