How to download GUI screen using push button in appdesigner

조회 수: 1 (최근 30일)
Harish M Y
Harish M Y 2021년 7월 15일
댓글: Jan 2021년 7월 15일
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
Harish M Y
Harish M Y 2021년 7월 15일
Hey, I am new to coding.
The whole code is written in the function form. In order to run the main model(function) I have several other functions loaded (which performs certain task like calculations, one function create GUI etc). When I run the model, GUIs will pop up and the user enters the value and has a provision to continue or exit. If continued the plots will be generated in new GUI.
My task is to save each and every GUI windows which open when I run the model into the user specified folder and user specified name
Jan
Jan 2021년 7월 15일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by