How to download GUI screen using push button in appdesigner
Mostra commenti meno recenti
Hi,
I need to download the GUI Screen with interactive plots (In the attached GUI, plots are not there) using push button from appdesigner. Please help me with this. I need the user to specify the path and file name for the figure.

butdown = uicontrol('Style', 'pushbutton', 'String', 'download',...
'units','pixels','Position', [500-wButt-wGapIPRow/2 20 wButt hButt],'fontsize', 15,'fontweight','bold','BackgroundColor',Colrs(13,:),'Foregroundcolor',[1 1 1],...
'Callback','uiresume(gcbf);sRespIp=''EndExit'';');
if butdown
fig = gcf;
fig.InvertHardcopy = 'off';
set(fig,'PaperPositionMode','auto');
print(fig,'-dpdf','test_gui.pdf')
end
3 Commenti
What does "download" mean, when the plots are interactive? What do you want to achieve?
The code does not run: butdown is a graphics handle. Then if butdown tries to convert the handle to a logical. Do you want the code inside the if-block to be executed, when the Download button is pressed? Then move the code into a function and insert its function handle as Callback property.
Harish M Y
il 15 Lug 2021
Jan
il 15 Lug 2021
Sorry, I do not understand, where exactly you want to achieve which action. I suggest that you split the problem into small parts and solve one after the other. Maybe then it becomes more clear, which code can be suggested.
Risposte (0)
Categorie
Scopri di più su Downloads in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!