필터 지우기
필터 지우기

gui wait and gui function output

조회 수: 1 (최근 30일)
Johan
Johan 2012년 9월 24일
Hi everyone,
I am struggling for some time now on an issue that appears simple.
I do not manage to wait the ouput of a gui called as a function. I am looking to reproduce something that looks like uigetfile (bloomberg download in my case), but I was not able to understand how they do it.
Windows tyle is modal.
Code pseudo example:
function master_gui
S.Fig=figure('callback',@function_xxx);
function function_xxx(~,~,S)
[output]= gui_that_load_bloomberg_data()
% wait something??
This_should_not_be_one_before_having_a_nice_output=1;
end
end
================== on another M file
function [output]= gui_that_load_bloomberg_data()
But.PushLoadEx = uicontrol('style','pushbutton','callback',@LoadExisting);
function LoadExisting(~,~,~)
[output] = Stuff_Loaded; %that line then should start again the master gui
end
end
Thank you in advance

채택된 답변

Sean de Wolski
Sean de Wolski 2012년 9월 24일
Are you looking for uiwait, or waitfor?
doc waitfor
doc uiwait
  댓글 수: 1
Johan
Johan 2012년 9월 26일
Well, uiwait did the trick perfectly, I was convinced that it did not work before.
An answer such as: "try harder" would have been accepted too...
Thank you.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by