Index expression out of bounds. Attempted to access element 2. The valid range is 1-1. More information
조회 수: 76 (최근 30일)
이전 댓글 표시
Hi,
I am facing the problem that I have two subsystems (brown and blue in fig.) with common inputs. When I run, I see the error "Index expression out of bounds. Attempted to access element 2. The valid range is 1-1. More information". However, if I just delete either of these subsystems, the other works perfect. But they dont work simultaneously :(.
댓글 수: 0
답변 (1개)
Rajani Mishra
2020년 4월 16일
The error encountered implies that you are trying to access an index greater than one for a variable of size 1*1 that is its having just one element not a vector or matrix. Possibly the subsystem you have deleted has this invalid access to index
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!