Sateflow for control logic
Show older comments
Is possible to use conjunction between two charts that have shared variables for e.g variable x is the input to the state-flow chart and there is a conjunction between these charts with condition either to go to 1 or to 2, when going to 1 for example turn one mode till it reaches the point and vice versa. back to the initiale state if it goes to 2 do the same thing, but this with guard condition giving an error that expected a scalar!!! Do you have solution for that please?
2 Comments
Azzi Abdelmalek
on 22 Aug 2016
A solution for what?
Snoor Salihi
on 23 Aug 2016
Edited: Snoor Salihi
on 23 Aug 2016
Answers (1)
Corey Lagunowich
on 16 Oct 2026 at 19:23
0 votes
There is an example in the documentation that shows something very similar to what you are describing for a climate control system:
Categories
Find more on Weather and Atmospheric Science 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!