Is it possible to use logicals in an Matlab function in Stateflow?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
In stateflow Chart I use a Matlab function with the line:
Sel1 = P_Vor(:,1) >= t_MW_Start & P_Vor(:,1) < t_MW_End;
In debug mode I get the error: Undefined function or variable 'Sel1'
When I use: Sel1 = single(P_Vor(:,1) >= t_MW_Start & P_Vor(:,1) < t_MW_End);
it works but I need logicals. How do I do this? Thanks Paul
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!