问题
I'm trying to create a subsystem that has a transfer function in it. Everything except one coefficient in the denominator is set in this transfer function.
How can I promote only this parameter, instead of promoting the entire denominator of the transfer function into the the subsystem's mask? When the user double clicks on the sub system, I want to make it so the mask only requests this single parameter, rather than the whole denominator. Is this possible?
It's a third order system: [1 (parameter) 9 1]
.
I want to set the (parameter) coefficient in the mask.
回答1:
Here's what you should be doing :
- take a Atomic Subsystem
- add Transfer Fcn block, with Denominator as
[1 X 9 1]
- Mask this Atomic Subsystem, with parameter say
X
named sayCoefficient
.
Here's an example, (sorry mine is too old Student's version of matlab, but you'll get what to do.)
回答2:
Put your transfer function in a masked subsystem with one input and one output. Hard-code all the parameters of the transfer function block, except the one of interest, which you can then define as a mask parameter. You can't change the mask of the built-in transfer function block, so you have to create your own mask.
来源:https://stackoverflow.com/questions/24680013/simulink-mask-parameters