Partitioning parameters for each subsystem
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Subsystems dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!