subscript that is out of range?

3 ビュー (過去 30 日間)
Rajeev Kumar
Rajeev Kumar 2020 年 9 月 18 日
コメント済み: stozaki 2020 年 9 月 21 日
I tried to simulate matrix equations with simulink but "subscript is out of range" error display. Anyone pls fix it.
attachment : simulink file

採用された回答

stozaki
stozaki 2020 年 9 月 19 日
Hello Rajeev,
The variable "P" is undefined in your Fcn block.
Define the value of the variable "P".
Regards,
stozaki
  2 件のコメント
Rajeev Kumar
Rajeev Kumar 2020 年 9 月 21 日
I defined the P variable but same error displayed again.
stozaki
stozaki 2020 年 9 月 21 日
Hi,
Is it the same error? Isn't it a different error message?
I seem to have the wrong number of elements in your Fcn block. Since the output of the Demux block is scalar, I don't think u (2) or u (3) can be used.
I think the input of the Fcn block can remain a vector. I have attached a reference example.
stozaki

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeString についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by