将数字更改为ppt幻灯片

时间:2014-11-18 12:34:23

标签: matlab powerpoint

我需要以ppt幻灯片的形式呈现MATLAB图和图。

我尝试使用MATLAB中的Publish选项,但它显示了单张幻灯片中的所有数字。我正在寻找其他选项,以便将每个数字放在单独的幻灯片中。

还有其他选择或如何在MATLAB中编写程序吗?

你能指导我吗

2 个答案:

答案 0 :(得分:3)

将代码分解为sections,已发布代码的每个部分都会有自己的幻灯片。这真的应该在文档中提到,但我没有看到它。

比较以下发布输出:

% One Slide
x = 1:10;
y = 1:10;

h.f1 = figure();
plot(x,y);

h.f2 = figure();
plot(x,y);

VS

%%
% 3 Slides
x = 1:10;
y = 1:10;

%%
h.f1 = figure();
plot(x,y);

%%
h.f2 = figure();
plot(x,y);

答案 1 :(得分:0)

您可以将数字保存为.eps文件,只需将这些数据包含在您的ppt中。例如:

print(h.f1,'-depsc2','NameOfFigure1')

print(h.f2,'-depsc2','NameOfFigure2')

或者您可以查看:http://www.mathworks.com/matlabcentral/answers/99150-is-there-an-example-of-using-matlab-to-create-powerpoint-slides