user interface - matlab gui becomes unresponsive or partially closes -


i working on matlab gui , after beginner's problems data handling quite satisfied result.

there 1 hiccup: whenever program done running, gui becomes unresponsive , buttons , text elements vanish, can see background.

i have scanned functions thoroughly close all; statements , such, there nothing there.

how return 'clean' gui can put in more data? need put gui in constant while loop?

best wishes chris

you can following:

modify attribute of controls interruptible:

set(handles.figure, 'interruptible','on'); 

create callback function based on pressing determined key combination.

set(keypressfcn, @resume_fcn); 

create callback function solves problem.

function resume_fcn()   if eventdata.key = ...     exit;    end end 

however, consistency of data may lost. in case don't want return 'clean' gui, can type:

delete(get(0,'children')) 

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -