blockSquaretimesSign
Output the squared input and retain the same sign of it
Extends from Modelica.Blocks.Interfaces.MIMO (Multiple Input Multiple Output continuous control block).
Information
This block outputs squared input real signal whereby the sign of the output is the same as input. The size of input u and output y are defined by a parameter blockSize, thus
for i in 1:blockSize loop y[i] = sign(u[i]) * u[i]^2; end for;
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | blockSize | ||
| Integer | nin (from MIMO) | 1 | Number of inputs |
| Integer | nout (from MIMO) | 1 | Number of outputs |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput[nin] | u (from MIMO) | Connector of Real input signals | |
| RealOutput[nout] | y (from MIMO) | Connector of Real output signals |