Relational Operator with Counter
Mostra commenti meno recenti
Hi,
I am using the following attached example in one of my model witha relational operator. I would like to count the result of the relational Operator. Since the output is boolean, i am unable to use cumulative sum, could someone help me to solve this problem.
All i want is whenever the result of the operator is True, I want the counter to start counting as 1. If the system result has reached or crossed 1 say like 10 times then i would like the counter to report the result as 10 (cumulation of no of time the relational operator is True).
Thank you
Regards
Raghu
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Discontinuities in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!