Partitioning parameters for each subsystem
3 次查看(过去 30 天)
显示 更早的评论
I have a subsystem with mask parameters. I am partitioning inputs and parameters for each subsystem.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1492007/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1492007/image.png)
My model is simple as below which filters each input channel using Biquad filter and parameters different for each inpurt channel as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1492012/image.png)
the parameters of the biquad filter are read on mask as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1492017/image.png)
where 'a' and 'b' are [2X3] and [3X3] array with each row of 'a' and 'b' are used to design one filter to filter one input channel. There are 3 inputs that are filtered that is why the use of each susbsytem block.
I am able to run this model in simulink but having trouble in generating code:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1492022/image.png)
any help is appreciated!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subsystems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!