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.

  • Zach: Hi Doug and Les, I didn’t have a lot of time to mess with this, but I did find a work-around. I plotted...
  • hamed: k
  • Les: @Zach This isn’t exactly what you are looking for but at least it puts all three parameters on the same...
  • Zach: Thanks for your suggestions Doug. I’ll give that a shot and see what happens. I’ve seen many of...
  • Doug: @Zach, I would say to use plotYYY, because that is close to what you want, but using depth as Y makes sense....
  • Doug: @Teja, I think this will work: http://www.mathworks .com/access/helpdesk /help/techdoc/ref...
  • Gify: merry christmas :) nice christmas tree! Regards, Janet Gify
  • Teja: Dear Doug Is there anyway to plot a surface from nonuniform data without meshgrid and griddata? Basically i...
  • Zach: I’m working with geophysical data, so I’d like to produce a depth profile. The y-axis would be...
  • Doug: @Ashok First, please do not use variable names that are MATLAB commands (std and mean). Second, p(j) should be...

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