Index expression out of bounds. Attempted to access element 2. The valid range is 1-1. More information
51 ビュー (過去 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 件のコメント
Mohammad Hejase
2022 年 1 月 19 日
use IC blocks to initialize any vectors you have. This should fix it
参考
カテゴリ
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!