Search and Assign Values In Stateflow
Show older comments
I am trying to build an output array based on multiple input arrays(4 of them). I have input arrays for 'boolean flag' & 'temperature'(4*2=8 inputs in total). Say the output array is an array of 5 elements, I have to assign the corresponding temperature value to the output array only if the boolean flag is true. Is there a way to do that in one step or one state? I figured I could do it using 5 different charts, and run them parallel for each element, and detect if the input flag is true and assign a value. Would this work? Any better way to do it in one step by running a search and assign algorithm? Your input will be appreciated. Thanks.
Answers (0)
Categories
Find more on Decision Logic 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!