convert boolean into double

29 次查看(过去 30 天)
Emily Baldi
Emily Baldi 2015-1-22
回答: Arunkumar M 2018-11-13
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.

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Stateflow 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by