Simulink StateFlow Variable assign
6 ビュー (過去 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!
