Search and Assign Values In Stateflow

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.

Réponses (0)

Catégories

En savoir plus sur Decision Logic dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by