Function Block using different thresholds
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Sam Fennell
am 19 Apr. 2017
Kommentiert: Sam Fennell
am 20 Apr. 2017
Hi,
I'm using a Matlab function block to give an output based on the difference between two temperatures. However, I want the output to come on above a certain threshold but not automatically go off below this threshold. e.g. I want it come on when T1-T2>8 but only go off when T1-T2<4
i.e.
T1-T2>8, Output=5
T1-T2<4, Output=0
I've tried different configurations of if,elseif,else but cannot seem to be able to write the script that will produce this. Can anyone help with this?
Thank you,
Sam.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Schedule Model Components finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!