Scalar Expansion with the Coulomb and Viscous Friction Block
This example shows a model with a scalar input to a Coulomb & Viscous Friction block that uses scalar expansion to output a vector.
Double click the friction block to see the parameters.Coefficient of viscous friction (Gain)is a scalar value2
, butCoulomb friction value (Offset)is a vector value[1 3 2 0]
. Therefore, the block uses element-wise scalar expansion to compute the output.
Each output is calculated using this formula.
For example, the first offset 1 is calculated as follows.
If the dimensions for the input andOffset
是相同的,then no expansion is necessary.