I want to save, publish GUI results in PPT.
2 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Geoff Hayes
on 16 Apr 2016
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.
0 Comments
See Also
Categories
Find more on MATLAB Report Generator 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!