lyapunov (MathScript RT Module Function)
- Updated2023-03-14
- 1 minute(s) read
lyapunov (MathScript RT Module Function)
Owning Class: cdsolvers
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
X = lyapunov(A, Q)
X = lyapunov(A, B, Q)
Legacy Name: lyap
Description
Calculates the matrix X that solves the general form of the following Lyapunov equation:
AX + XB = -Q.
Inputs
| Name | Description |
|---|---|
| A | Specifies an n x n state matrix, where n is the number of states. The default is an empty matrix. A is a real matrix. |
| B | Specifies an n x m input matrix, where m is the number of inputs. The default is A'. B is a real matrix. |
| Q | Specifies a real matrix. |
Outputs
| Name | Description |
|---|---|
| X | Returns the solution to the continuous Lyapunov equation. X is a real matrix. |
Details
The following table lists the support characteristics of this function.
| Supported in the LabVIEW Run-Time Engine | Yes |
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | Not characterized |
Examples
A = [1, 1; 0, 2]
Q = [2, 0; 0, 2]
X = lyapunov(A, Q)