MATLAB: Do I receive an error when trying to print in MATLAB 7.7 (R2008b)

MATLAB

When I select File->Print in a figure, I get the following errors:
??? Undefined function or variable 'ispuma'.
Error in ==> printopt at 72
if ispuma, pcmd = 'Print -Mps'; end
Error in ==> printdlg>LocalGetPrintOptions at 780
[cmd, defDevice] = printopt;
Error in ==> printdlg>LocalJavaPrintDlg at 719
[optKeys, optVals, driverList] = LocalGetPrintOptions( Data.Fig );
Error in ==> printdlg>LocalInitFig at 469
if LocalJavaPrintDlg( Data, Dlgname )
Error in ==> printdlg at 100
Dlg=LocalInitFig(Data);
??? Error while evaluating uimenu Callback

Best Answer

Since you are using MATLAB 7.7 (R2008b), you should not need the ISPUMA function and this could be caused by an installation issue.
To resolve the error without reinstalling, please save you work and follow these instructions,
1. Quit MATLAB.
2. Download the ispuma.m file. Place the new file in the $MATLABROOT/toolbox/matlab/general directory. ($MATLABROOT is the MATLAB root directory as returned by typing 'matlabroot' at the command prompt without quotes.)
3. Restart MATLAB.
4. After restarting MATLAB, enter 'rehash toolboxcache'.
For versions of MATLAB prior to 7.4 (R2007a), some functions required ispuma.m because we used to support Mac OS 10.1.x (Puma). As of version 7.4 (R2007a) and later, there should be no references to ISPUMA. We also no longer support Mac OS 10.1.x.