MATLAB Answers

Is it possible to calculate and hold a value constant during the Simulink calculation

15 views (last 30 days)
Stanko
Stanko on 14 Mar 2011
Is it possible to calculate a value somewhere during a simulink simulation and use it from that point on as a constant in a calculation. I would use this in a IF action subsystem (or maybe While or For loop) where at a certain condition a value should be calculated and from that point on used in a calculation as a constant.

  0 Comments

Sign in to comment.

Accepted Answer

Paul
Paul on 14 Mar 2011
Put the calculation inside a triggered subsystem and make the output of the system the desired calculated value. Trigger the subsystem when you want to calculate the value.

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!