DynamicSystems
ScaleInputs
compute the system resulting from multiplying each input of a system object by a coefficient
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
ScaleInputs(sys, coefficients, opts)
sys
-
System; system object
coefficients
list; list of numeric or symbolic coefficients
opts
(optional) equation(s) of the form option = value; specify options for the ScaleInputs command
outputtype = tf, coeff, zpk, ss, or de
Specifies the subtype of the returned system object. The default return type is based on the type of the system objects specified in the systems parameter. See the Description section for more details on the return type.
parameters = set(name = complexcons) or list(name = complexcons)
Specifies numeric values for parameters in sys. These values override those specified by the parameters field of the system object, which in turn override the settings in in SystemOptions(parameters). The numeric value on the right-hand side of each equation is substituted for the name on the left-hand side in the expressions that define the model. No checking is done during the substitution to determine whether the substituted value is valid. For example, a complex value can be substituted for the coefficient of a polynomial. If the complex value had been originally assigned to the model at creation, a warning would be generated.
The ScaleInputs command creates a system that scales the inputs of sys by the coefficients in the coefficients list.
The type of the system object ScaleInputs returns is determined by the type of the system object specified in the sys parameter unless an option is specified.
If the sys parameter is an algebraic equation (ae) and no option is specified, the ScaleInputs command returns a system object in state space form by default. If the algebraic equation system does not have a state space representation, an error is returned. For details on algebraic equation object support by the DynamicSystems package, see DynamicSystems[AlgEquation].
with⁡DynamicSystems:
Continuous single-input single-output (SISO) system example
sys1≔StateSpace⁡ss3+5⁢s2+7⁢s+6:
PrintSystem⁡sys1
State Spacecontinuous1 output(s); 1 input(s); 3 state(s)inputvariable=u1⁡toutputvariable=y1⁡tstatevariable=x1⁡t,x2⁡t,x3⁡ta=010001−6−7−5b=001c=010d=0
In this example, the list of coefficients contains a symbolic coefficient to be multiplied by the single input of sys1:
ci≔k1
Create the new system, assigning a default value for the symbolic coefficient.
sys1a≔ScaleInputs⁡sys1,ci,parameters=k1=1:
PrintSystem⁡sys1a
State Spacecontinuous1 output(s); 1 input(s); 3 state(s)inputvariable=u1⁡toutputvariable=y1⁡tstatevariable=x1⁡t,x2⁡t,x3⁡ta=010001−6−7−5b=00k1c=010d=0
sys1b≔ScaleInputs⁡sys1,ci,outputtype=coeff:
PrintSystem⁡sys1b
Coefficientscontinuous1 output(s); 1 input(s)inputvariable=u1⁡soutputvariable=y1⁡snum1,1=k1,0den1,1=1,5,7,6
Discrete multiple-input multiple-output (MIMO) case example
ss_a≔Matrix⁡1,2,0,4:
ss_b≔Matrix⁡3,7,9,6:
ss_c≔Matrix⁡5,6,5,2:
ss_d≔Matrix⁡0,1,0,0:
sys2≔StateSpace⁡ss_a,ss_b,ss_c,ss_d,discrete,sampletime=0.001:
PrintSystem⁡sys2
State Spacediscrete; sampletime = .1e-22 output(s); 2 input(s); 2 state(s)inputvariable=u1⁡q,u2⁡qoutputvariable=y1⁡q,y2⁡qstatevariable=x1⁡q,x2⁡qa=1204b=3796c=5652d=0100
PrintSystem⁡TransferFunction⁡sys2
Transfer Functiondiscrete; sampletime = .1e-22 output(s); 2 input(s)inputvariable=u1⁡z,u2⁡zoutputvariable=y1⁡z,y2⁡ztf1,1=69⁢z−24z2−5⁢z+4tf2,1=33⁢z+12z2−5⁢z+4tf1,2=z2+66⁢z−112z2−5⁢z+4tf2,2=47⁢z−92z2−5⁢z+4
The list of coefficients for this example contains a symbolic coefficient and a numeric coefficient to be multiplied by the inputs of sys2:
cf≔a,0.5
sys2a≔ScaleInputs⁡sys2,cf,outputtype=tf:
PrintSystem⁡sys2a
Transfer Functiondiscrete; sampletime = .1e-22 output(s); 2 input(s)inputvariable=u1⁡z,u2⁡zoutputvariable=y1⁡z,y2⁡ztf1,1=69⁢a⁢z−24⁢az2−5⁢z+4tf2,1=33⁢a⁢z+12⁢az2−5⁢z+4tf1,2=0.5000000000⁢z2+33.⁢z−56.z2−5.⁢z+4.tf2,2=23.50000000⁢z−46.z2−5.⁢z+4.
The DynamicSystems[ScaleInputs] command was introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
See Also
Description of the Model of a Linear System Object
DynamicSystems[AlgEquation]
DynamicSystems[Coefficients]
DynamicSystems[DiffEquation]
DynamicSystems[PrintSystem]
DynamicSystems[StateSpace]
DynamicSystems[TransferFunction]
DynamicSystems[ZeroPoleGain]
Download Help Document