×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to stop a process definitely from my application's main figure?

How to stop a process definitely from my application's main figure?

How to stop a process definitely from my application's main figure?

(OP)
Hi anyone,

  My program execute a certain process. I need to be
abble to cancel it at any moment by pressing a button without going out my application.
It would be a kind of CONTROL+C but it would occur while the application's main figure is opened, i.e., without going out the application.

  Thanks in advance,

  CRIS

RE: How to stop a process definitely from my application's main figure?

Hi,
You have to create the button with a handle and path it to your program. In different points (or in a main loop) put the following lines:
v=get(hbutton,'value'); % say hbutton is the handle
if v
  return    % or 'pause' if you just want to pause
end

Joe
BSTEX - Equation viewer for Matlab
http://www.geocities.com/bstex2001

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources