PowerPoint

Before presentation, slides have to be prepared to deliver your ideas more precisely. One of things in the process of making slides is to add pictures in your case.

It is annoying to do this work from your storage if have a large number of pictures added. Here, we introduce a good way to establish connection between PowerPoint and Matlab to help us import images quickly.

exportToPPTX allows user to create PowrPoint files without using COM-objects automation.

The example of code is shown below.

1
2
3
4
5
6
7
8
%% Open a slide named 'example.PPTX' 
exportToPPTX('open','example');
%% Add images in a new slide
slideId = exportToPPTX('addslide');
% Upper left corner picture with a blue frame inserted via figure handle
load earth; figure('Renderer','zbuffer'); image(X); colormap(map); axis off;
exportToPPTX('addpicture',gcf,'Position',[1 1 3 2],'EdgeColor',[0 0 0.8],'LineWidth',3); %

打赏
  • © 2020-2025 Yu Xia
  • Powered by Hexo Theme Ayer
    • PV:
    • UV:

Buy me a cup of coffee~

支付宝
微信