Skip to content

tonigi/matlab_save_presentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matlab_save_presentation

Tools to create OpenOffice/LibreOffice and PowerPoint (PPTX) presentations from Matlab.

This is temporarily split into two directories. This is bound to change.

Features

  • Writes arbitrary figures/diagrams (like saveas)
  • Append to existing presentation, or replace
  • Does not require OpenOffice/LibreOffice to be installed
  • Output conforms to the OASIS document standard
  • Does not use COM or other IPC

Note that ODP presentations can be converted to PPT with the unoconv software (but it requires OO/LO to be installed).

Usage

saveodp(h,filename,['-a'])

Saves the figure in the file handle h into the OO presentation filename. The file is appended to if '-a' is passed as an argument.

Installation

The software is composed by two parts:

  • the saveodp.m file, which you should copy anywhere in Matlab's path, and
  • the img2odp.pl script, which should be in the executable path.

The script relies on a number of Perl modules to work. Installation is straightforward under Linux, less so under Windows. For this reason, a standalone-executable version is provided.

Linux. Use your distribution's package manager or the cpan command to install the OpenOffice::OODoc module.

Troubleshooting

If you get...

Error using saveodp (line 13)
Can't locate OpenOffice/OODoc.pm in @INC (@INC contains: /home/toni/perl5/lib/perl5/i386-linux-thread-multi
/home/toni/perl5/lib/perl5/i386-linux-thread-multi /home/toni/perl5/lib/perl5 /usr/local/lib/perl5 /usr/local/share/perl5
/usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at img2odp.pl line 13.
BEGIN failed--compilation aborted at img2odp.pl line 13.

...you need to install the OpenOffice::OODoc Perl module. Try e.g. to run cpan then install OpenOffice::OODoc. Answer yes to all questions.

License

matlab_saveodp - Create OpenOffice/LibreOffice presentations from Matlab.
Copyright (C) 2014 

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

About

Create OpenOffice/LibreOffice/PowerPoint presentations from Matlab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages