Thread Subject: Pausing

Subject: Pausing

From: abe.cool@gmail.com

Date: 2 Nov, 2008 18:27:31

Message: 1 of 2

Hi Guys,

I have created a function called "Line".

Lets say i am calling the line functions for 5 times with the delay of
3sec, it'll draw the lines.

Line1(2,3,2,5);
pause(3);
Line1(4,5,2,3);
pause(3);
Line1(7,6,8,9);
pause(3);
etc........


There is a pause button in my GUI(Player). If i press that button, the
line drawing function should pause.

I don't know how to do that.

Please help me.

Thank you

ABE

Subject: Pausing

From: vedenev

Date: 3 Nov, 2008 06:10:08

Message: 2 of 2

I have following idea:
It is need to make pause buton in your gui. In callback of this button
you make script where it set 1 to user data if click then 0 if click
again then 1 if click again ect. Then in palce where line plot you
need to check efter draw each line if userdata 1, if it 1 than whait
until it become 0. UserData is property in each control you can use
for example UserData of the figure.

------------------------------------
Maxim Vedenev, Matlab freelancer
http://simulations.narod.ru/

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com