subscript that is out of range?
5 次查看(过去 30 天)
显示 更早的评论
I tried to simulate matrix equations with simulink but "subscript is out of range" error display. Anyone pls fix it.
attachment : simulink file
0 个评论
采纳的回答
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 个评论
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 Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!