How do I stop a print after canceling at the print setup menu?

2 次查看(过去 30 天)
Hi All. So I have the following lines in my code:
1. set(gcf,'PaperPositionmode','auto');
2. print(gcf,'-dsetup');
3. print(gcf);
Line two brings up the printer setup menu. But if I cancel from there, line three will still send the current figure to my default printer. I don't want this to happen but since print cannot return a value I am having troubling thinking of a way around this. Any ideas?

采纳的回答

fichtorious
fichtorious 2013-2-14
solution:
Just use print(gcf,'-v') instead

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by