MATLAB Answers

convert boolean into double

18 ビュー (過去 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.

Community Treasure Hunt

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

Start Hunting!

Translated by