How to hold True value infinite
Show older comments
I have a variable that will be false, true, then false. I want to home onto the true value on a second variable until the end of the simulation. For example the window is clean, until I touch it. I have a Boolean variable if I’m touching the glass. But I want to capture the window and it’s now forever smudge.
Answers (1)
Fangjun Jiang
on 16 Jul 2020
0 votes
Connect this signal to the "S" (set) of a S-R Flip-Flop block.
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!