exportToPPTX
MatLab tool for exporting data to PowerPoint 2007+ files without the need COM-object automation.
Author: Stefan Slonevskiy
Thanks, p kung. Latest version is up, it should now work with multiple images properly. Let me know if you see any other bugs.
26 Mar 2013
exportToPPTX
MatLab tool for exporting data to PowerPoint 2007+ files without the need COM-object automation.
Author: Stefan Slonevskiy
In terms of capturing screen rather than figures, this is a known getframe limitation. See MathWorks' article on a potential workaround: http://www.mathworks.com/support/solutions/en/data/1-3NMHJ5/ You can use hardcopy method to get figure/axis CDATA and then just pass that to exportToPPTX. An example of passing CDATA to exportToPPTX is available in examples_exportToPPTX.m
26 Mar 2013
exportToPPTX
MatLab tool for exporting data to PowerPoint 2007+ files without the need COM-object automation.
Author: Stefan Slonevskiy
To save figures in another file format use MatLab's imwrite function to write to a temporary file and then call exportToPPTX with that filename. For example:
img = getframe(gcf);
imwrite(img.cdata,'temp.jpg');
exportToPPTX('addpicture','temp.jpg','Position',[6 3.5 3 2]);
In terms of plans for notes support, I was hoping to add it at some point.
13 Mar 2013
exportToPPTX
MatLab tool for exporting data to PowerPoint 2007+ files without the need COM-object automation.
Author: Stefan Slonevskiy
Jonathan, I tested it with four images (in the examples_exportToPPTX.m script) and it worked fine. Can you please provide more details about this bug?
13 Mar 2013
exportToPPTX
MatLab tool for exporting data to PowerPoint 2007+ files without the need COM-object automation.
Author: Stefan Slonevskiy
Thanks for the suggestion, Darik. I have added this and a few other options to the latest version.
In terms of capturing screen rather than figures, this is a known getframe limitation. See MathWorks' article on a potential workaround: http://www.mathworks.com/support/solutions/en/data/1-3NMHJ5/ You can use hardcopy method to get figure/axis CDATA and then just pass that to exportToPPTX. An example of passing CDATA to exportToPPTX is available in examples_exportToPPTX.m
26 Mar 2013
exportToPPTX
MatLab tool for exporting data to PowerPoint 2007+ files without the need COM-object automation.
Author: Stefan Slonevskiy
To save figures in another file format use MatLab's imwrite function to write to a temporary file and then call exportToPPTX with that filename. For example:
img = getframe(gcf);
imwrite(img.cdata,'temp.jpg');
exportToPPTX('addpicture','temp.jpg','Position',[6 3.5 3 2]);
In terms of plans for notes support, I was hoping to add it at some point.
Jonathan is right,
i also can't create 4 different plots on the same figure. they're all identical.
in your example, you plot earth 4 times & put them in 2x2 plots on a slide.
now i want to plot 4 different plots/images & put them in 2x2 plots on one slide.
somehow, the 2x2 plots are of the same image (last plot) 4 times.
if you could kindly fix this bug, i'd give it 5 stars.
regards,
4
26 Mar 2013
exportToPPTX
MatLab tool for exporting data to PowerPoint 2007+ files without the need COM-object automation.
In terms of capturing screen rather than figures, this is a known getframe limitation. See MathWorks' article on a potential workaround: http://www.mathworks.com/support/solutions/en/data/1-3NMHJ5/ You can use hardcopy method to get figure/axis CDATA and then just pass that to exportToPPTX. An example of passing CDATA to exportToPPTX is available in examples_exportToPPTX.m
Comment only
26 Mar 2013
exportToPPTX
MatLab tool for exporting data to PowerPoint 2007+ files without the need COM-object automation.
To save figures in another file format use MatLab's imwrite function to write to a temporary file and then call exportToPPTX with that filename. For example:
img = getframe(gcf);
imwrite(img.cdata,'temp.jpg');
exportToPPTX('addpicture','temp.jpg','Position',[6 3.5 3 2]);
In terms of plans for notes support, I was hoping to add it at some point.
Comment only