convert boolean into double

43 Ansichten (letzte 30 Tage)
Emily Baldi
Emily Baldi am 22 Jan. 2015
Beantwortet: Arunkumar M am 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.

Antworten (1)

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

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!

Translated by