FOR Iterator subsystem in Simulink

버전 1.0.0.0 (8.89 KB) 작성자: Rukmani Mohanganesh
Simple model for understanding FOR iterator
다운로드 수: 250
업데이트 날짜: 2013/7/8

라이선스 보기

I have a simulink model which does the following:
In1 input would take in a vector of 3 element input (this will be time varying but for initial development/testing purposes I have used a constant [1 3 6])
and In2 is a constant matrix of 6x3 size whose value is
X =

1 4 6
1 4 5
1 3 6
0 0 0
2 3 5
3 5 7
The simulink model should output the corresponding index (1 based index) of [1 3 6] in X (which should be 3).
When I simulate this model I am able to see value '3' at every loop (10 ms loop) with a scope inside the FOR subsystem (@ Scope3 in the model). But when I
scope this output outside the FOR subsystem (@ Scope in the model), it always displays '0' and never equal to '3'. I am not able understand this behavior.
Please help!

인용 양식

Rukmani Mohanganesh (2024). FOR Iterator subsystem in Simulink (https://www.mathworks.com/matlabcentral/fileexchange/42517-for-iterator-subsystem-in-simulink), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2009b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Chassis Systems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0