A state machine in simulink.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to do the following in simulink
if SOC > max
state = 3
if min < SOC < max
state = 2
if SOC<min
state = 1
SOC is in the range [1:100]
What is the best way to do something like that without using the stateflow package? My supervisor suggested that I could use a lookup table, but I am not sure how they work, or how I could do it with a lookup table. I also might want to add some more states at a later time.
thx.
0 Kommentare
Antworten (1)
Sean de Wolski
am 8 Mai 2015
How about just use a MATLAB Function block and paste that code that you have above into it?
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!