I want to save, publish GUI results in PPT.

2 次查看(过去 30 天)
Hello, I have GUI where i am importing number of excel files by PUSHBUTTON and plotting the results. I want to save the results in PPT by another pushbutton. Please help, here is my code
if true
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
[fileList, folder] = uigetfile('*.csv',...
'Find the File to Import', ... %b import file
'Multiselect', 'on')
fileList = cellstr(fileList);
for k = 1:length(fileList);
baseFileName = fileList{k}
fullFileName = fullfile(folder, baseFileName);
fprintf(1, 'Now reading %s\n', fullFileName);
[numbers,txt,raw] = xlsread(fullFileName);
a = numbers(6,:);
b = numbers(7,:);
c = numbers(8,:);
d = numbers(10,:);
e = numbers(11,:);
f = numbers(18,:);
figure(1);
plot(a,b,'*--');
legend(fileList,'Location','southwest','FontSize',8,'FontWeight','bold','Interpreter','latex');
grid on;
figure(2);
plot(a,c,'*--');
legend(fileList,'Location','southwest','FontSize',8,'FontWeight','bold','Interpreter','latex');
grid on;
end

回答(1 个)

Geoff Hayes
Geoff Hayes 2016-4-16
Sandy - see Stefan Slonevskiy's submission to the MATLAB File Exchange at http://www.mathworks.com/matlabcentral/fileexchange/40277-exporttopptx which may provide the means to save your figures (?) to a PowerPoint file.

类别

Help CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by