isLinearModel

check if a model is linear or nonlinear

Contents

Syntax

[res,A,B,D,c] = isLinearModel(model,nx,nu,nw)

Description

Checks if a model is linear of nonlinear. If the model is linear, the function returns the system matrices of the linear system equation

$\dot x = A \cdot x + B \cdot u + D \cdot w + c$

Input Arguments

model

function handle to the dynamic function of the model

nx

number of system states

nu

number of inputs

nw

number of disturbances

Output Arguments

res

1 if the model is linear, 0 if not

A

system matrix of the linear model (dimension: [nx,nx])

B

input matrix of the linear model (dimension: [nx,nu])

D

disturbance matrix of the linear model (dimension: [nu,nw])

c

constand offset of the linear model (dimension: [nx,1])

See Also

platoon, car


© 2018-2020 I6 Technische Universität München Website License

logoAroc logoCora logoChair logoTum