How to add image in existing ppt with matlab code
Show older comments
I have standard powerpoint format in which I want to add graphs of different applications. and this procedure is repetative. so can someone tell me how can I do this with matlab code?
1 Comment
Ashwini More
on 28 Jan 2020
Answers (1)
Selva Karna
on 28 Jan 2020
clc
clear all;
close all;
import mlreportgen.ppt.*
slidesFile = 'myPicturePresentation.pptx';
slides = Presentation(slidesFile);
add(slides,'Title Slide');
add(slides,'Title and Content');
plane = Picture(which('b747.jpg'));
plane.Width = '5in';
plane.Height = '2in';
replace(slides,'Content',plane);
close(slides);
2 Comments
Walter Roberson
on 28 Jan 2020
This requires the MATLAB Report Generator, I believe.
It would help if the code could show selecting a particular slide given the index.
Ashwini More
on 28 Jan 2020
Edited: Ashwini More
on 28 Jan 2020
Categories
Find more on Create Presentation Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!