MATLAB: Is it possible to save the contents of the Command Window to PDF in MATLAB 7.7 (R2008b)

MATLAB

I want to be able to save the contents of my Command Window to PDF, much like the DIARY command allows me to save to TXT.

Best Answer

To save the contents of your Command Window to PDF in MATLAB 7.7 (R2008b):
1. Undock the Command Window from the MATLAB desktop (if it is already undocked, then skip this step).
2. Navigate to File->Print
3. When the Print dialog window opens. Check the 'Print to File' checkbox and select Adobe PDF as the printer of choice from the drop down menu.
4. Select Print
There is no way to save the contents to PDF programmatically.