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!