Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
terminate simulation

Subject: terminate simulation

From: angelina

Date: 25 Apr, 2013 15:27:10

Message: 1 of 2

Hi everyone!
Is there any way to stop the simulation if a variable in the code takes specific value?
Thank you!
Angelina

Subject: terminate simulation

From: ade77

Date: 25 Apr, 2013 16:20:09

Message: 2 of 2

"angelina" wrote in message <klbi0e$ndr$1@newscl01ah.mathworks.com>...
> Hi everyone!
> Is there any way to stop the simulation if a variable in the code takes specific value?
> Thank you!
> Angelina

"return" might be of help to you

Tags for this Thread

No tags are associated with this thread.

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.

Contact us