Is it possible to use logicals in an Matlab function in Stateflow?

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.

Asked:

on 14 Apr 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!