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!
