Why does the stateflow function 'hasChanged(PS)' not work when PS is a vector?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nandish Calchand
am 3 Apr. 2017
Kommentiert: Nandish Calchand
am 11 Apr. 2017
Coder Error: PS contains a matrix or a structure type and cannot be used with change detection.? WHen PS is a scalar value, it works fine.
0 Kommentare
Akzeptierte Antwort
Gillian Rosen
am 10 Apr. 2017
Hi Nandish,
I understand that when you use the 'hasChanged' function in your Stateflow chart, you encounter an error that indicates that your input PS is a matrix or structure and therefore cannot be used with change detection.
If you are using MATLAB as your action language, you unfortunately can only use a scalar value as input to hasChanged. If you would like to use vector or matrix inputs with hasChanged, please use C as your action language instead. See the note in the "hasChangedTo" section of the change detection documentation for more information:
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Complex Logic 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!