File Exchange Pick of the Week

January 23rd, 2009

Print PDF

Bob's pick this week is print_pdf by Oliver Woodford.

If you export MATLAB graphics to PDF files then fuss with settings to make it look "just so" then print_pdf may be for you.

This is hardly the only such submission on the File Exchange. There are dozens of files with the "pdf" tag for example. What made this submission stand out from the pack was the activity log. First, notice the Comments and Ratings. Then scroll down to the Updates section. Oliver harnessed the power of his fan club. He was extremely responsive to make improvements based on feedback from others. We like to see this kind of social computing in the File Exchange, and encourage more posters to use the forum to improve their code.

Comments?


Get the MATLAB code

Published with MATLAB® 7.8

3 Responses to “Print PDF”

  1. farasha replied on :

    very good, exporting any thing in Matlab form to pdf is so much needed in programs developments.
    Thanks for the effort and carry on

  2. Oliver Woodford replied on :

    Thanks for the honour, Bob.

  3. Balaji Ganeshan replied on :

    On the whole this is an excellent post.

    But I am having a problem using this file for guide generated figures. I have a push button within my gui to generate a pdf - however I receive an error as follows:

    ??? Error using ==> print at 310
    What follows -f is not a Figure handle.

    Error in ==> print_pdf at 48
    print(’-depsc2′, ‘-noui’, ‘-painters’, [’-f’ num2str(fig)], ‘-r864′, tmp_nam);

    Any help will be much appreciated.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Bob, Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

  • Jon: This is a useful tool - but in fairness I have to point out that it is remarkably similar to a routine of the...
  • oleg: The author has implemented skewness, kurtosis and checks answering appropriately to the critic.
  • Ashok: how to store 10 or more random number in a loop a loop for i = 1:n mean(i) = input(’enter the mean value...
  • Ben: Doug, Thanks for the very helpful videos! Uitables seem like a convenient way to make a customized property...
  • oleg: Allstats has no checks, no comments and could also be improved (talking about prctile implementatio). Not to...
  • Todd: Additional information and a link to download free MATLAB and Simulink LEGO MINDSTORMS NXT code can be found at...
  • Doug: @Leo, Here is the “English version” of that code. “vec = []” makes an empty variable...
  • leo: Dear Doug I have a question in your code ‘October 9th, 2009 at 13:53′ vec = []; vec = [vec val]; I...
  • Shanker Keshavdas: You sir, are a gentleman and a scholar… No really, helped me out a lot. As to what is...
  • Quan Zheng: how can I get a copy of stepspecs.m?

These postings are the author's and don't necessarily represent the opinions of The MathWorks.