Simulink StateFlow Variable assign
5 次查看(过去 30 天)
显示 更早的评论

Could any tell us how these codes work? What the mean of "<" in these codes? Many thanks
回答(1 个)
Mark McBroom
2017-11-30
编辑:Mark McBroom
2017-11-30
The code gets executed when entering the "Modes" state and every simulation step while the Modes state is active. To understand the "<" sign, type the code into the MATLAB command window:
>> SonarSensors = [1 1 1 1 1];
>> SensorRanges = [2 2 2 2 2];
>> [SonarSensors(4:5)] < SensorRanges(4:5)
ans =
1×2 logical array
1 1
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
