Do something only, when variable is same for 2 second
1 view (last 30 days)
Show older comments
Commented: martin martin on 25 Apr 2019
how can I write a code (cycle) something like "when value is same for 2 second, do something else"? Example below, Im changing variable "a".
a = 1;
"if a = a (for more then 2 second, then ..)"
b = a;
Find more on Title 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!