How do I get 2 pages per sheet when printing file from Matlab Editor?

5 views (last 30 days)
I am using Matlab version 9.5.0.944444 (R2018b) and a Canon MG 7150 printer. The latter has an option to print 2 pages per sheet and this feature works fine with other editors and word processors. However, when I select this printer driver option from within the Matlab Editor print command I am always presented with output of 1 page per sheet.
Any ideas about where I am going wrong - or does the Matlab Editor override the printer-driver options?
As an aside, probably not relevant, the Matlab Editor correctly permits 2-sided printing if selected in the printer driver, but ignores the request to preview the printer output before printing – most odd!

Accepted Answer

Santhosh A V
Santhosh A V on 19 Feb 2019
Hi Peter
The default Page setup of MATLAB editor do not provide any options to change the number of pages to be printed in a single page.
However one possible workaround for the issue is to use “Publish option” of MATLAB Editor.You may follow below steps for the same.
  1. Click on “Publish” tab
  2. Click on “Edit Publish Configuration”
  3. In the Output Settings select Output file format as “doc”
  4. Click on Publish
Now the code along with plots will be opened in Microsoft word where in you can select “2 Pages per sheet” in Print. Please refer below image for more info:
publishsettings.png
wordprint.png
Hope this helps.

More Answers (1)

Peter Gorman
Peter Gorman on 20 Feb 2019
Santhosh A V, thanks for the response. Publish worked fine after I realised I needed to turn off 'Evaluate Code' to get the source code alone and to avoid execution errors being printed on anything other than stand-alone scripts. It's also a bit of a nuisance having to add headers and footers to the resulting .doc file by hand, in order to get file names, dates, page numbers etc on the listing. This effort is worthwhile for a final filing copy, but not for frequent copies taken for marking up for development purposes.
Also my query still remains regarding why and how the Matlab Editor print function overrides the '2 pages per sheet' option selected in the printer driver.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!