xs2pdf — save graphics to a PDF file.
xs2pdf(win_num, file_name [,orientation]) xs2pdf(fig, file_name [,orientation])
integer, id of the figure to export.
handle of the figure to export.
string, name of the exported file.
If the extension is not provided, it is going to be automatically added.
optional character, with possible values 'portrait' or 'landscape'. The default value is 'portrait'.