![]() |
PSS Common Module
MATLAB toolboxes for aerospace analysis
|
PSS internal file version information. More...
Functions | |
| function | statespace (in a, in b, in c, in d, in name, in states, in inputs, in outputs, in sType, in dT) |
| Create a state space object. More... | |
| function | and (in e, in f) |
| Strings. More... | |
| function | close (in h, in e) |
| PSS internal file version information. More... | |
| function | connect (in e, in f, in c) |
| PSS internal file version information. More... | |
| function | eig (in g) |
| e -> f More... | |
| function | get (in x, in s) |
| PSS internal file version information. More... | |
| function | getabcd (in x) |
| PSS internal file version information. More... | |
| function | getsub (in x, in kS, in kI, in kO, in name) |
| PSS internal file version information. More... | |
| function | isempty (in x) |
| PSS internal file version information. More... | |
| function | plus (in e, in f) |
| PSS internal file version information. More... | |
| function | series (in e, in f, in m) |
| PSS internal file version information. More... | |
| function | set (in x, in y, in s) |
| Set an element of the class statespace. More... | |
PSS internal file version information.
Copyright (c) 1997-1998 Princeton Satellite Systems, Inc. All rights reserved.
Set an element of the class statespace
| function and | ( | in | e, |
| in | f | ||
| ) |
Strings.
Copyright (c) 1997-1998 Princeton Satellite Systems, Inc. All rights reserved.
Append two state space system
[ e ] [ f ]
g = and( e, f )
e (:) Object of class statespace f (:) Object of class statespace
g (:) Appended
| function close | ( | in | h, |
| in | e | ||
| ) |
PSS internal file version information.
Copyright (c) 1997 Princeton Satellite Systems, Inc. All rights reserved.
Close the loop on a statespace control system.
e relates y to u. u = -ey
g = close( h, e )
h (:) Object of class statespace e (:) Connection matrix
g (:) Closed loop system
| function connect | ( | in | e, |
| in | f, | ||
| in | c | ||
| ) |
PSS internal file version information.
Copyright (c) 2000 Princeton Satellite Systems, Inc. All rights reserved.
Connection of two state space systems. The connection is
e -> f The connection matrix is lists the indices of the matching outputs of e and inputs of f. For example u (4,1) y (3,1) f e c might be [1 1;1 3] which means that output 1 of y goes into input 1 of u. Output 3 of y also goes into 1 of u. c is [uF;yE] Empty c implies parallel connection with separate inputs and outputs: -------
g = connect( e, f, c )
e (:) Object of class statespace f (:) Object of class statespace c (:,2) Connection matrix
g (:) Series connection
| function eig | ( | in | g | ) |
e -> f
Copyright (c) 2000 Princeton Satellite Systems, Inc. All rights reserved.
Assemble the matrices
Assemble the names
PSS internal file version information
Get the eigenvalues of a statespace system.
[v, s] = eig( g )
e (:) Object of class statespace
v (:) Eigenvectors s (:) Eigenvalues
| function get | ( | in | x, |
| in | s | ||
| ) |
PSS internal file version information.
Copyright (c) 1999 Princeton Satellite Systems, Inc. All rights reserved.
Get an element of the class statespace
y = get( x, s )
x (:) Object of class statespace s (1,:) Element of class statespace
y (:) Output
| function getabcd | ( | in | x | ) |
PSS internal file version information.
Copyright (c) 1997 Princeton Satellite Systems, Inc. All rights reserved.
Get the state space matrices
[a, b, c, d] = getabcd( x )
x (:) Object of class statespace
a (:) State matrix b (:) Input matrix c (:) Output matrix d (:) Feedthrough matrix
| function getsub | ( | in | x, |
| in | kS, | ||
| in | kI, | ||
| in | kO, | ||
| in | name | ||
| ) |
PSS internal file version information.
Copyright (c) 1997 Princeton Satellite Systems, Inc. All rights reserved.
Get the state space matrices
g = getsub( x, kS, kI, kO, name )
x (:) Object of class statespace kS (1,:) States kI (1,:) Inputs kO (1,:) Outputs name (1,:) Name
g (:) Object of class statespace
| function isempty | ( | in | x | ) |
PSS internal file version information.
Copyright (c) 1997 Princeton Satellite Systems, Inc. All rights reserved.
Determine if x is an empty statespace system.
k = isempty( x )
x (:) Object of class statespace
k (1,1) 1 if empty
| function plus | ( | in | e, |
| in | f | ||
| ) |
PSS internal file version information.
Copyright (c) 2000 Princeton Satellite Systems, Inc. All rights reserved.
Parallel connection of two state space systems.
The connection is [ e ] [ f ]
g = plus( e, f )
e (:) Object of class statespace f (:) Object of class statespace
g (:) Parallel connection
| function series | ( | in | e, |
| in | f, | ||
| in | m | ||
| ) |
PSS internal file version information.
Copyright (c) 1997 Princeton Satellite Systems, Inc. All rights reserved.
Connection of two state space systems.
The connection is
e -> f
The connection matrix is lists the indices of the matching outputs of e and inputs of f. For example:
u (4,1) y (3,1) f e
c might be [1 1;1 3] which means that output 1 of y goes into input 1 of u. Output 3 of y also goes into 1 of u.
g = series( e, f, c )
e (:) Object of class statespace f (:) Object of class statespace m (:,2) Connection matrix
g (:) Series connection
| function set | ( | in | x, |
| in | y, | ||
| in | s | ||
| ) |
Set an element of the class statespace.
Copyright (c) 2000,2005 Princeton Satellite Systems, Inc. All rights reserved.
x = set( x, y, s )
x (:) Object of class statespace y (:) Value of element s (1,:) Element of class statespace
x (:) Object of class statespace
Referenced by PlaybackControls(), and SliderBar().
| function statespace | ( | in | a, |
| in | b, | ||
| in | c, | ||
| in | d, | ||
| in | name, | ||
| in | states, | ||
| in | inputs, | ||
| in | outputs, | ||
| in | sType, | ||
| in | dT | ||
| ) |
Create a state space object.
Everything after c is optional.
dx/dt = ax + bu y = cx + du
g = statespace( a, b, c, d, name, states, inputs, outputs, sType, dT )
a State transition matrix
b State input matrix
c State output matrix
d State feedthrough matrix
name (1,:) Name of the system
states (:,:) or {:} State names
inputs (:,:) or {:} Input names
outputs (:,:) or {:} Outputs
sType (1,:) 's', 'z', 'delta'
dT (1,1) Time step
g (:) Plant g.a State transition matrix g.b State input matrix g.c State output matrix g.d State feedthrough matrix g.n Number of states g.nI Number of inputs g.nO Number of outputs g.states Names of states g.inputs Names of inputs g.outputs Names of outputs g.sType 's', 'z', 'delta' g.dT Time step