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:
You can download the source for this by downloading it here: Matlab2OneNote.

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!
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?