Why does choosing Page Setup from a Figure window generate an error in MATLAB 7.0 (R14)?

1 view (last 30 days)
If I create a figure and choose Page Setup from the File menu, I receive the following error in the Command Window:
??? cellfun works only on cells.
Error in ==> pagesetupdlg>LocalGetSetupData at 1691
toolong = find(cellfun('length',names) > 28);
Error in ==> pagesetupdlg>LocalJavaSetupDlg at 1655
[optKeys, optVals] = LocalGetSetupData( Fig );
Error in ==> pagesetupdlg>LocalInitFig at 831
if LocalJavaSetupDlg(Fig,Dlgname)
Error in ==> pagesetupdlg at 38
Dlg = LocalInitFig(Action);
Error in ==> filemenufcn at 69
pagesetupdlg(hfig)
??? Error while evaluating uimenu Callback.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This problem has been fixed in MATLAB 7.0.1 (R14SP1). If you are using a previous version, read the following:
We have verified that there is a bug in MATLAB 7.0 (R14) in the way that printer data is retrieved in Windows 2000.
To work around this issue, select Print Setup from the File menu in a Figure window before choosing Page Setup for the first time during a MATLAB session.

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!