Print dialog box
printdlg('-crossplatform',fig) displays the standard cross-platform MATLAB® printing dialog rather than the built-in printing dialog box for Microsoft® Windows® computers. Insert this option before the fig argument.
Note If you want to set up a new printer, use the operating system printer management utilities. Restart MATLAB if you do not see the printer which is already setup.
Note A modal dialog box prevents the user from interacting with other windows before responding. For more information, see WindowStyle in the MATLAB Figure Properties.