An easily way to display an output with a just a click in GUI button.
10 views (last 30 days)
Show older comments
I'm developing an application in MATLAB 2015a with a GUI interface for teaching Power Flux for lay people in MATLAB.
The user don't open the MATLAB because I was compilate the script using the application compiller. Because this I can't use the disp command or say for him execute the report command in his command window and run the report by the report explorer. The application is and GUI windown that have and button to select the formated input and a button to give the result. So instead to open the report explorer and click in run to get a pdf file, I wanna that my user just click in the button and popup an pdf archive in his windown with the results.
Any suggestions are greatly appreciated. Thank you!
I'm traing this:
########
in the GUI code...
function pushbutton1_Callback(hObject, eventdata, handles)
var = get(handles.edit1,'string');
run(var)
NOVAguiabrenewton(busdata,linedata,basemva,var);
#######
function NOVAguiabrenewton(busdata,linedata,basemva,var)
[output] = newton(busdata,linedata,basemva,var);
save('output','busdata');
buildrgfiles();
open('resultados.pdf');
end
#############
function [RptgenML_CReport1] = buildrgfiles
%BUILDRGFILES
% Auto-generated by MATLAB on 21-Feb-2020 12:30:10
% Create RptgenML.CReport
RptgenML_CReport1 = RptgenML.CReport('isAutoSaveOnGenerate',true,...
'Format','pdf-fop',...
'Stylesheet','!fo-NoOptions',...
'FilenameName','resultados',...
'FilenameType','other');
% setedit(RptgenML_CReport1);
% Create rptgen.cml_variable
rptgen_cml_variable1 = rptgen.cml_variable('Variable','busdata',...
'Filename','C:\output.mat',...
'Source','M',...
'CustomTitle','resultados',...
'TitleMode','manual');
setParent(rptgen_cml_variable1,RptgenML_CReport1);
0 Comments
Answers (0)
See Also
Categories
Find more on MATLAB Report Generator in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!