convert boolean into double

27 visualizzazioni (ultimi 30 giorni)
Emily Baldi
Emily Baldi il 22 Gen 2015
Risposto: Arunkumar M il 13 Nov 2018
hallo.
I have a questione.
I have to put into stateflow's chart a double variable (for condition on transition) but I have a boolean variable from simulink. I try to convert "boolean" into "double" by chart/add input (and then I choice double) but without success.

Risposte (1)

Arunkumar M
Arunkumar M il 13 Nov 2018
you can typecase it like double(x) and use in your transition condition.

Categorie

Scopri di più su Stateflow in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by