Printing issues on a Mac
7 次查看(过去 30 天)
显示 更早的评论
I have installed MATLAB R2010b on a Mac OS 10.6.6. Although my printers are working fine with all other applications, I am unable to print directly from MATLAB. Do you have any idea why there could be this communication failure?
Below is the return in my Command Window:
Error in ==> printdlg>LocalJavaPrintDlg at 759
print(Data.Fig, pOpts{:});
Error in ==> printdlg>LocalInitFig at 479
if LocalJavaPrintDlg( Data, Dlgname )
Error in ==> printdlg at 104
Dlg=LocalInitFig(Data);
??? Error while evaluating uimenu Callback
5 个评论
fame Li
2012-9-12
The issue is due to the name of the printer is different from the device name given by the system. Thus, matlab cannot find the device using the name that you specified in the print window. To solve the issue, you need to match the name of the printer with its device name.
You can find out the device name: system preference -> print & scan -> double click the printer, it will pop out a window to show the condition of the printer now, click the 'settings'. You will find the device name there and change the name of the printer to match with the device name. Then you are good to go.
回答(3 个)
ramesh jallu
2011-1-31
To print a plot or a m-file from a Macintosh, just click on the plot or m-file, select Print under the File menu, and hit return.
the cyclist
2011-1-31
I have the identical setup as you do (same versions of MATLAB and Mac OS X), and printing works for me, from both command line and figure window. At one point I did have your problem, though.
You might want to try this solution:
http://www.mathworks.com/support/solutions/en/data/1-5DRO9Z/?solution=1-5DRO9Z
Note in particular the final paragraph, about the (slightly bizarre) prohibition of square brackets in the name of the printer. That was the problem for me.
If you can't get it to work, remember you can always print to file, and then print the resulting file. (I generally got good results using the PNG format.)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!