I want to save, publish GUI results in PPT.

조회 수: 2 (최근 30일)
Sandy Baha
Sandy Baha 2016년 4월 14일
답변: Geoff Hayes 2016년 4월 16일
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