Matlab to OneNote

Stephen Lawrence shared with Dan Escapa how to export via a script from MatLab to OneNote…

I took your Send file to OneNote powertoy code and adapted it for Matlab. I have attached my code below so that you can get an idea of how it works.

I had to switch from creating Matlab XML to Matlab HTML…the result works well. All I had to do to publish my file in OneNote was type:

   OneNotePublish(‘test.m’);

in the command window.I got the resulting page:

image

You can download the source for this by downloading it here: Matlab2OneNote.

  1. This is great! I’ll use this frequently, as I use onenote as my lab notebook. May need to tweak slightly to get it to work for M files that aren’t scripts, but it looks easy enough. I’m looking forward to inking over my matlab code and figures now!

  2. OneNote PowerToys - The Daily Ramblings of an SMS Engineer - pingback on March 30, 2008 at 5:43 pm
  3. It is nice! But published images look like they are plain bitmaps – they pixelize after beeing zoomed in. If I copy a Matlab image using Matlab's edit menu and paste it into OneNote the copy can bee zoomed and it looks very nice – like a vector graphics.

    Is it possible to make “OneNotePublish” to publish images as such nice (vector/metafile?) images?

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackbacks and Pingbacks: