Drake
 All Classes Files Functions Variables
TrigPoly Class Reference

support class for parsing functions into their polynomial and trigonemetric components. More...

Collaboration diagram for TrigPoly:

Public Member Functions

function TrigPoly (q, s, c, n)
 
function getmsspoly (obj)
 
function getsym (obj)
 
function getVar (obj)
 
function getSin (obj)
 
function getCos (obj)
 
function isTrigOrPoly (a)
 returns true if the TrigPoly object a has contributions from q(i) OR s(i),c(i), but not both. More...
 
function getTrigPolyBasis (a)
 
function eval (a, q0)
 evaluate the trig poly at q=q0 More...
 
function getUnitCircleConstraints (a)
 
function clean (a, tol)
 
function sin (a)
 
function cos (a)
 
function diff (a, z)
 
function end (a, k, n)
 I don't think I should have to overload this, but it's not working like (size(x,k)) should be. More...
 
function ctranspose (a)
 
function diag (a)
 
function display (a)
 
function horzcat (varargin)
 
function isempty (a)
 
function isequal (a, b)
 
function isscalar (a)
 
function length (a)
 
function minus (a, b)
 
function mpower (a, n)
 
function power (a, n)
 
function mrdivide (a, b)
 
function mldivide (a, b)
 
function mtimes (a, b)
 
function plus (a, b)
 
function repmat (a, m, n)
 
function reshape (a, m, n)
 
function size (a, varargin)
 
function sparse (a)
 
function subsasgn (a, s, b)
 
function subsref (a, s)
 
function sum (a, dim)
 
function times (a, b)
 
function trace (a)
 
function transpose (a)
 
function uminus (a)
 
function uplus (a)
 
function vertcat (varargin)
 

Public Attributes

Property q
 
Property s
 
Property c
 
Property p
 

Detailed Description

support class for parsing functions into their polynomial and trigonemetric components.

mostly passes all functionality through to msspoly, but adds handling of sin() and cos().

example use: t=msspoly('t',1); x=TrigPoly('x','s','c',2); u=msspoly('u',1); p = PendulumPlant(); p.dynamics(t,x,u);

Constructor & Destructor Documentation

function TrigPoly ( q  ,
s  ,
c  ,
 
)
Parameters
qsimple msspoly (vector) or char to represent the basic polynomial variable
ssimple msspoly or char to represent sin(q)
csimple msspoly or char to represent cos(q)
nthe length of q (optional if q is an msspoly, otherwise required)
Return values
obj

Member Function Documentation

function clean ( ,
tol   
)
Return values
a
function cos ( )
Return values
a
function ctranspose ( )
Return values
a
function diag ( )
Return values
a
function diff ( ,
 
)
Return values
a
function display ( )
function end ( ,
,
 
)

I don't think I should have to overload this, but it's not working like (size(x,k)) should be.

see 'doc end'

Return values
i
function eval ( ,
q0   
)

evaluate the trig poly at q=q0

Return values
val
function getCos ( obj  )
Return values
c
function getmsspoly ( obj  )
Return values
p
function getSin ( obj  )
Return values
s
function getsym ( obj  )
Return values
p
function getTrigPolyBasis ( )
Return values
v
function getUnitCircleConstraints ( )
Return values
con
function getVar ( obj  )
Return values
q
function horzcat ( varargin  )
Return values
a
function isempty ( )
Return values
b
function isequal ( ,
 
)
Return values
b
function isscalar ( )
Return values
b
function isTrigOrPoly ( )

returns true if the TrigPoly object a has contributions from q(i) OR s(i),c(i), but not both.

Return values
b
function length ( )
Return values
n
function minus ( ,
 
)
Return values
a
function mldivide ( ,
 
)
Return values
a
function mpower ( ,
 
)
Return values
a
function mrdivide ( ,
 
)
Return values
a
function mtimes ( ,
 
)
Return values
a
function plus ( ,
 
)
Return values
a
function power ( ,
 
)
Return values
a
function repmat ( ,
,
 
)
Return values
a
function reshape ( ,
,
 
)
Return values
a
function sin ( )
Return values
a
function size ( ,
varargin   
)
Return values
varargout
function sparse ( )
Return values
a
function subsasgn ( ,
s  ,
 
)
Return values
a
function subsref ( ,
s   
)
Return values
a
function sum ( ,
dim   
)
Return values
a
function times ( ,
 
)
Return values
a
function trace ( )
Return values
a
function transpose ( )
Return values
a
function uminus ( )
Return values
a
function uplus ( )
Return values
a
function vertcat ( varargin  )
Return values
a

Member Data Documentation

Property c
Property p
Property q
Property s

The documentation for this class was generated from the following file: