Successful Termination of MatLab GUI Application.

Status
Not open for further replies.

karim.elmahdy

Junior Member level 2
Joined
Dec 2, 2005
Messages
22
Helped
7
Reputation
14
Reaction score
2
Trophy points
1,283
Activity points
1,595
terminate gui matlab

Hey,

I am doing a project on Transmission Lines and Media. I implemented the project on Matlab as an Interactive GUI Application. It is mainly plots of Matching transmission lines Load Impedence. so I have two options to terminate the application with the button that I've added to exit.

1- Terminating the application using exit or quit or a lot of other commands that forces the application to close but terminates the matlab with it as well.

2- use the close all command that closes the application but with in a middle of a plot it opens the figure plotter again and continue drawing

I dont want both of them, I want to successful terminate My application without further running and without closing the matlab with it.

Thanks.
 

1. Initialize a global variable 'dead'=0
2. make a terminate button (when pressed global dead=1)

function a1()
global dead
while(dead!=1)
~loop goes here~

pretty bad way, found none other.
 

try make this again by click the "return" and if doesn't try again

Added after 43 minutes:

yfgdtucoddo6r5uhiiiiiiiiiiiiiiiiiiiiiiiifswdgorgioikvjkjkwciuddeuichjeuihcuihuidfgeufhewdhepfJXNJKCJIECJOJAMCOJKOESIFO
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…