experience and innovation

Common

Directory List

AStar, CAD, Classes, CommonData, ComponentModels, Control, ControlGUI, Coord, Database, Failure, General, Graphics, Math, Plugins, Probability, SimulinkIF, Time, Demos/AStar, Demos/Control, Demos/Database, Demos/General, Demos/Graphics, Demos/Help, Demos/Math, Demos/Plugins,

Functions and Demos

AStar

AStarSearch - Finds the optimal path using A*

DeltaAngleForNewRADec - Compute the angle change needed to change the trajectory so that it

GenerateGrid - Generate a grid on a sphere that is evenly spaced in right ascension

GlobeGrid - Generate a grid on a sphere that is evenly spaced in right ascension

GridPathCost - Finds the cost for going from startNode to nextNode. Assumes a

GridSuccessorNodes - Finds succesor nodes in a square grid.

GridTraverseCost - Finds the cost of going from one node to another in a square grid.

ManeuverCost - Finds the cost for going from startNode to nextNode.

ManeuverCost3D - Finds the cost for going from startNode to nextNode.

ManeuverSuccessorNodes - Finds successor nodes.

ManeuverSuccessorNodes3D - Finds successor nodes.

SphericalGrid - Generate a grid on a sphere that is evenly spaced in right ascension

TransformGridCoordinates - Transforms between 2D and 1D coordinates. Assumes at square grid that is


CAD

AddMass - Add mass properties. mB is optional.

AddThermalDevices - Add a heater and thermistor to each component.

AnimateCube - Draw a cube given its dimension.

AreaTriMesh - Computes the area of a triangle mesh.

AutoCADColor - Converts an AutoCAD color into a [r,g,b] color.

BHinge - Compute a transformation matrix from a bHinge data structure.

BinaryToString - Converts a bit array to a string. [1 0 1 0] will become 0101.

BodyPlugIn - Create an body GUI plug in.

Build3DSC - Build up a 3D spacecraft model. You can enter vertices and faces

BuildCADModel - Build a model of a spacecraft.

CADColor - Color a CAD Model. This function can be used only to change the colors

ComponentPlugIn - Create an component GUI plug in.

ComponentPopup - Draw a component

CreateBody - Create a body.

CreateCADReport - Creates CAD model report. It will create HTML tables or formatted output.

CreateCADTable - Creates a CAD Report by subystem listing:

CreateComponent - Create a component. This function has a built-in demo.

CreateHTMLTable - Creates an HTML table from x. x may be a two dimensional cell array or

CreateReport - Creates CAD model report.

CrossSection - Determine cross-sectional area from CAD model. This routine assumes that

DeviceProperties - Generates default properties for specific devices.

Dim - Set the transparency for components of a particular name.

Draw2DViewPlugIn - Draw a spacecraft in a plain 3D box.

DrawSC - Draw a spacecraft. You can display planets and the sun as options.

DrawSCCntrl - Perform actions specified by the HUD. Define a data structure

DrawSCPlanPlugIn - Draw a spacecraft in a plain 3D box.

ExportCAD - Export a CAD file to a file.

ExportDSim - Export fields required by DSim. This routine will create three files.

ExportOBJ - Export an OBJ file. This routine will create two files. One is

Extrude - Generate an object from cross sections. Type Extrude for a demo.

ForceAndTorqueEnvelope - Computes the force and torque envelope. n is the number of samples.

GenericProperties - Generates generic properties for CAD components. The types are:

HSRCAD - Finds the visible surfaces given a vertex and face list. Does

IC623X3 - Convert an inertia matrix in the form [Ixx Iyy Izz Ixy Ixz Iyz]

Inertias - Computes inertias of common objects about their c.m. All objects

IntToBinary - Converts an integer to binary [lsb msb] in two's complement.

LoadCAD - Load a 3D CAD file. Handles .dxf, .obj and .3DMF files.

MassStructure - Create a mass structure.

MatlabColorToObj - Convert Matlab color parameters to obj parameters

PolygonProps - Polygon properties from vertex and face data.

RotateOBJFile - Rotates and scale an obj file name.obj and writes the new file

SpacecraftPlugIn - Create a Spacecraft GUI plug in.

TreeBldCAD - Take the CAD data and create the body array for Tree.

TreeDraw - Update the 3D drawing data structure. This routine assumes that

TriMesh3DMF - Generate a 3DMF for a trimesh. This function will append ".t3d" to the file.

VFToMassStructure - Computes mass properties for a component defined by vertices and faces.


Classes

ctranspose - Computes the transpose of a quaternion.

get - Gets the scalar and vector equivalent of a quat.

matrix - Returns a transformation matrix.

mtimes - Multiplies an object of type quat times a quaternion or a vector.

quat - Create an object of class quat. You can input:

scalar - Returns the scalar part of a quaternion.

vector - Returns the vector part of a quaternion.

and - Append two state space system

close - Close the loop on a statespace control system.

connect - Connection of two state space systems. The connection is

eig - Get the eigenvalues of a statespace system.

get - Get an element of the class statespace

getabcd - Get the state space matrices

getsub - Get the state space matrices

isempty - Determine if x is an empty statespace system.

mtimes - Series connection of two state space systems. The connection is

plus - Parallel connection of two state space systems.

series - Connection of two state space systems. The connection is

set - Set an element of the class statespace

statespace - Create a state space object. Everything after c is optional.

ctranspose - Computes the transpose of a matrix.

get - Gets the matrix equivalent of a transmat.

mtimes - Multiplies an object of type quaternion times a quaternion or a vector.

quaternion - Converts an input of type transmat to type quat.

transmat - Create an object of class transMat. You can input:


CommonData

PSSLogo.tif - PSS Logo

SampleSimOutput.txt - Default simulation output for use with QuickPlot.

SimpleSC.mat - Simple MAT file for demos.

a.mat - Sample data for merging databases.

b.mat - Sample data for merging databases.


ComponentModels

AntennaPatch - Get vertices for an antenna defined as x width, y width, d depth,

ArrayPatch - Create solar array patches. Two are created, one for the front and

BatteryDesign - Design a battery given an orbit and planet.

Box - Draw a box.

CameraModel - Create model for star cameras.

CompactPCIChassis - Generate a CompactPCI Chassis.

Cone - Draw a transparent cone.

ExtrudeFromProfile - Extrude from a radial profile. Can have an inner and outer radius.

Frustrum - Draw a frustrum of a cone

GeomPatch - Get vertices for surfaces of revolution, ellipsoids and cylinders

HallThrusterModel - Create a CAD Drawing of a Hall thruster.

LunarModuleFirstStage - Generates a CAD component for a lunar module first stage.

LunarModuleSecondStage - Generates a component for a lunar module ascent stage.

NuclearReactorModel - A model for an SP-100 based space nuclear reactor.

Panel - Create a panel in the x, y plane.

PanelFrame - Generate a frame for a honeycomb panel.

PanelWithCenterHole - Create a panel with a center hole.

PanelWithCutout - Create a panel with a cutout.

Panels - Draw panels for a spacecraft.

REAModel - Create pictures for General Dynamics REAs.

RWAModel - Get vertices for an RWA.

RWAPatch - Get vertices for an RWA

SCMG - Draw a single-axis control moment gyro.

SHELSFlange - Generate the SHELS Flange.

SHELSInterface - Generate the SHELS Interface.

SaturnsRings - Create the rings of Saturn.

ShapedStrut - Generate strut going from x1 to x2.

SingleAxisLinearDrive - Model a single axis drive with the motor dynamics modeled by a lag.

StarCameraModel - Create pictures for various star cameras.

Strut - Generate a variable radius strut going from x1 to x2.

ThrusterPatch - Create a thruster patch.

Triangle - Draw a triangle. This function will compute the mass properties

TriangularTruss - Generate a triangular truss going from x1 to x2.

Truss - Generate a square truss going from x1 to x2.

TrussPatch - Get vertices and faces for a truss. Input endpoints

Tubing - Generate a tube through the points p.

XenonTank - Generate a Xenon Tank model based on the ETS VIII Tank.

XenonTankSupport - Generate a Xenon Tank support based on the ETS VIII Tank.


Control

ACTF - Generic sensor or actuator model. The model is

Acker - Computes the gain for desired pole locations using Ackermann's

Alias - Computes the fundamental alias of a frequency

Append - Appends two state space models assuming that they do not have

BalReal - Compute the balanced realization of a, b, c, d

BalRealG - Computes a balanced realization of g.

BodeGP - Computes the phase using the Bode gain phase rule where

C2DFOH - Create a discrete time system from a continuous system

C2DPulse - Create a discrete time system from a continuous system

C2DZOH - Create a discrete time system from a continuous system

C2DZOHWD - Create a discrete time system from a continuous system

C2DelZOH - Create a discrete time systems using the delta operator

CButter - Build a continuous Butterworth Filter with output of the form

CGram - Compute the controllability gramian for a continuous time system.

CInputs - Generates different control inputs. d is the data

CLPoles - Computes the closed loop poles for a control system

CLoopS - Creates a closed loop system given the plant [a,b,c] and the

CToD - Create a discrete time compensator from a continuous time compensator.

CToDRand - Convert continuous noise process to a discrete noise process.

CompE - Create a SISO compensator using a variety of compensator elements. Each

DBalReal - Compute the balanced realization of a, b, c, d for discrete

DBode - Generates a Bode plot for a discrete time system from iu to iy.

DCGain - Computes the DC gain of a discrete time state space system.

DCGram - Compute the controllability gramian for a discrete time system.

DOGram - Compute the observability gramian for a discrete time system.

DQCE - Create an optimal estimator given a discrete time model of the form

DQCR - Create a regulator of the form

DRiccati - Solves the matrix riccati equation in the form

Delay - Create a model of a delay using Pade approximants for exp(-sT)

DigitalFilter - Implement a digital filter.

DispG - Display a g statespace system.

ESAssign - Apply eigenvector assignment.

ESAssignDraper - Apply eigenvector assignment.

EVAssgnC - Use eigenvector assignment to design a controller. Complex lambdas

EVAssgnE - Use eigevector assignment to design an estimator. Complex lambdas

EVDesMat - Create the design matrix (d) for the eigenstructure assignment

EigEval - Evaluate the eigenvalues and eigenvectors graphically. The eigenvectors

FFTEngy - Plot the energy in a signal. Will annotate peaks if y is a 1-dimensional

FResp - Compute the frequency response of the system

FRespG - Compute the frequency response of the system

FindPeaks - Find peaks by looking at slopes.

GND - Compute the frequency response of the system

GPMargin - Computes gain and phase margins.

GSS - Compute the frequency response of the system

Gen2nd - Creates a second order transfer function

IC - Generate a response to an initial condition vector x.

Integral - Creates a general integrator of the form

InvSys - Computes the inverse system where y is the input and u the

JLQOF - Linear quadratic regulator with output feedback cost function.

JLQTOF - Output feedback design with a reference input.

JLQTWOF - Output feedback design with a reference input.

KFilter - Mechanizes one step of a Kalman Filter with a forgetting factor

KSmooth - Mechanizes a Kalman Filter fixed interval smoother. You input a full

KronProd - Kronecker product.

KronSum - Kronecker sum.

LFBal - Perform low frequency prebalancing of a system

LQC - Quadratic controller.

LeadLag - Create a lead or lag with the appropriate phase characteristics

Limit - Limits a matrix. If limit is a scalar then the limits are set at

MSR - Mean squared response of a system. It will use the e matrix for

MagPlot - Compute the magnitude frequency response of the system

ND2SS - Creates state-space model given a denominator polynomial and

NLFilter - Implements a nonlinear fixed gain filter of the form

NQuant - Computes the variance of various types of roundoff.

Notch - Creates a second order transfer function to produce

NumericalTransferFunction - Computes a numerical transfer function from the impulse response for the system.

Nyquist - Generate a Nyquist plot from a statespace object or gain/phase data.

OGram - Compute the observability gramian for a continuous time system.

PDDesign - Design a PD controller of the form

PGains - Compute the principal gains for a system of the form

PID - Design a PID controller of the form

PIDMIMO - Produces a state space 3-axis PID controller of the form

PIDWithLag - Creates a PID controller when there is a lag that you wish to

PIDesign - Design a PI controller of the form

PILeaky - Design a PI controller of the form

PWM - Create a model of a pulsewidth modulator using Padé approximants.

Parallel - Parallel connects two state space models. Both systems feed off of the same

PhasePlane - Implements a phase plane controller. The optimality condition is

PrintEigenvalues - Print eigenvalues to the screen.

PropStateSpace - Propagate a state space model.

QCE - Create an estimator based on the state equations

QCR - Create a regulator of the form

Quant - Quantizes a matrix.

Riccati - Solves the matrix Riccati equation in the form

RootLocus - Generate the root locus for s SISO system.

RouthArray - Computes the Routh array for a polynomial.

S2Damp - Computes the damping ratio and natural frequency for a set

S2Z - Transform an s-plane transfer function into the

SRiccati - Solves the matrix Riccati equation in the form

SS2ND - Creates a transfer function model of a state-space system from

SSEmpty - Empty state space system. a = [], b = [], c = [], d = 1;

SVPlot - Compute the maximum and minimum singular values.

SelectS - Extract selected states from the model.

Series - Series connect two state space models so that y2 is the output

ShapeFlt - Generates a shaping filter with notches and first order roll off. If no

SizeAB - Checks the dimensions of the set a,b for consistency.

SizeABCD - Checks the dimensions of the set a,b,c,d for consistency. d need not

SizeAC - Checks the dimensions of the set a, c for consistency.

StatePrp - Propagates state equations.

SteadyS - Determine the steady state control for the system

Step - Generate a step response. If no outputs are given it will plot.

TResp - Compute the time response of a state-space system.

TTPlots - Generates torque transmission plots.

TrnsZero - Computes the transmission zeros of a plant

WPZ - This routine produces a frequency vector that includes all of the

WReson - Creates a frequency vector with points around resonances

Windup - Given a state space system

Z2Damp - Computes the damping ratio and natural frequency for a set

Z2S - Transform an z-plane transfer function into the

ZFresp - Generates the frequency response for a digital filter.

ZOH - Create a model of a zero-order-hold using Padé approximants.

xsort - Sort columns of eigenvalues so that the same eigenvalue is on the same row.

AddOuterLoop - Add an outer loop for a controller.

AssembleBlock - Assemble a block given the data structure

AssemblePlant - Assemble a plant given a model described by gIn. If open loop the output

BlockDiagramPlugIn - Create an BlockDiagram GUI plug in.

ControlDesignPlugin - Design control systems. This maintains a data structure for the system

DualListPlugIn - Create dual lists.

EigenstructurePlugIn - Create an Eigenstructure GUI plug in.

EmptyBlock - Produce an empty data structure used by the control functions

EmptySISO - Produce an empty data structure used by the control functions

LQPlugIn - Create an LQ GUI plug in.

MapIOPlugIn - Create an MapIO GUI plug in.

ModalReductionPlugIn - Create an ModalReduction GUI plug in.

ModelPlugIn - Create an Model GUI plug in.

OuterInnerTest - Inner/Outer control loop test.

ReduceModal - Retain modes k of the system a,b,c,d

ReduceOrder - Retain states k of the system a,b,c,d

ReduceOrderPlugIn - Create a model order reduction GUI plug in.

SISOListPlugIn - Create a list of SISO elements for use by control design tools.

SISOPlugIn - Create an SISO GUI plug in.


ControlGUI

AddOuterLoop - Add an outer loop for a controller.

AssembleBlock - Assemble a block given the data structure

AssemblePlant - Assemble a plant given a model described by gIn. If open loop the output

BlockDiagramPlugIn - Create an BlockDiagram GUI plug in.

ControlDesignPlugin - Design control systems. This maintains a data structure for the system

DualListPlugIn - Create dual lists.

EigenstructurePlugIn - Create an Eigenstructure GUI plug in.

EmptyBlock - Produce an empty data structure used by the control functions

EmptySISO - Produce an empty data structure used by the control functions

LQPlugIn - Create an LQ GUI plug in.

MapIOPlugIn - Create an MapIO GUI plug in.

ModalReductionPlugIn - Create an ModalReduction GUI plug in.

ModelPlugIn - Create an Model GUI plug in.

OuterInnerTest - Inner/Outer control loop test.

ReduceModal - Retain modes k of the system a,b,c,d

ReduceOrder - Retain states k of the system a,b,c,d

ReduceOrderPlugIn - Create a model order reduction GUI plug in.

SISOListPlugIn - Create a list of SISO elements for use by control design tools.

SISOPlugIn - Create an SISO GUI plug in.


Coord

AU2Q - Convert an angle and a unit vector to a quaternion.

AZElToU - Converts azimuth and elevation to a unit vector.

Altitude - Computes the altitude above an ellipsoidal planet.

Anim2Q - Animate the evolution of 2 quaternions over time.

AnimQ - Animate the evolution of a quaternion over time.

AzCoElToU - Converts azimuth and coelevation to a unit vector.

BankAngle - Bank angle computations

Cart2Sph - Converts cartesian coordinates to spherical

CoordinateFrameFromUV - Computes a transformation matrix from the frame in which u is defined

CoordinateTransform - Transform between selected coordinate frames and representations.

DQ2Mat - Finds the derivative of a transformation matrix in terms of quaternions

ECIToEF - Computes the matrix from mean of Aries 2000 to the earth fixed frame.

EFToLatLonAlt - Convert an earth fixed position vector to [latitude;longitude;altitude]

Eul2Mat - Converts 3-2-1 Euler angles into an orthonormal transformation matrix.

Eul2Q - Converts 3-2-1 Euler angles to a quaternion using the half angle

EulDot2Rates - Converts 3-2-1 Euler angle rates into angular velocity. If only one

FLagrange - RHS for the fraction of the distance from the primary to the secondary

Gc2GdLat - Convert geocentric latitude to geodetic latitude

Gd2GcLat - Convert geodetic latitude to geocentric latitude

HorizonAngle - Angle between the horizon and a vector from rG to rS. Angles below the

IConv - Transform a 6x1 compact inertia vector into a 3x3 inertia matrix.

IConvP - Transform a a 3x3 inertia matrix into 6x1 compact inertia vector.

IntersectPlanet - Altitude of the nearest point to a sphere.

LatLonAltToEF - Convert [latitude;longitude;altitude] to an earth fixed position vector.

LatLonToR - Converts geodetic latitude and longitude to r for an ellipsoidal planet.

Mat2Eul - Converts an orthonormal transformation matrix into 3-2-1 Euler angles.

Mat2Q - Converts a transformation matrix to a quaternion.

Q2AU - Convert a quaternion to an angle and a unit vector.

Q2Eul - Converts a quaternion to 3-2-1 Euler angles.

Q2Mat - Converts a quaternion to a transformation matrix.

Q2RADec - Compute right ascension and declination of a vector from a quaternion.

QAcq - Given at least three vectors computes the initial quaternion.

QAlign - Rotate about a body axis to align a body vector with an inertial vector

QAxisRot - Creates a quaternion based on a pure rotation about the any axis.

QBToIDot - Computes the quaternion derivative from angular velocity.

QError - Small angle errors between two quaternions.

QForm - Transforms a vector in the direction of the quaternion.

QHills - Generate the quaternion that transforms from the ECI to the Hills frame.

QIToBDot - Computes the time derivative of a quaternion that transforms from

QLVLH - Generate the quaternions that transform from ECI to LVLH coordinates.

QLatLon - Generate the quaternions that transform from ECI to a lat/long frame

QMult - Multiply two quaternions.

QNadirPoint - Generate a quaternion that points a body vector uB towards nadir.

QPose - Transpose of a quaternion.

QRand - Generates a random quaternion. The first element is always positive.

QRotateToAlign - Rotate about an axis to align "ua" as close as possible to target "ut"

QSLERP - Interpolate a quaternion using the SLERP algorithm.

QTForm - Transforms a vector opposite the direction of the quaternion.

QToPFTarget - Generate a quaternion to go to a planet fixed lat/long target.

QUnit - Unitizes a quaternion. Quaternions are assumed to be the columns of q.

QZero - Outputs the zero quaternion [1;0;0;0]

R2LatLon - Computes geocentric latitude and longitude from r

RPhiTheta2Cart - Computes the transformation matrix from an r, phi, theta frame

RVToRADec - Computes right ascension and declination and their rates.

RaDec2Q - Right ascension and declination to a quaternion.

RaDec2U - Converts right ascension and declination to unit vectors.

Rates2EulDot - Converts angular velocity into 3-2-1 Euler angle rates. If only one

RotMat - Generates a rotation matrix that transforms in the opposite direction

Sa2Q - Converts and angle vector into a quaternion. Angles are defined as

Sph2Cart - Converts spherical coordinates to cartesian.

TranslateAxes - Recompute the moment of inertia "i" for one of two cases:

U2AzEl - Converts a unit vector to azimuth and elevation.

U2Q - Finds the quaternion that aligns a unit vector with a second vector.

U2RADec - Computes the right ascension and declination from a unit vector.


Database

BuildConstant - Build the constant database. You can add to this function to build

Constant - Outputs the value of a constant. q must be an exact match.

Database - Outputs the value of a constant. q must be an exact match.

MergeConstantDB - Merges b into a.


Failure

ProbabilityOfFailure - Computes the probability of failure. Failure rate is in failures/unit time


General

AddToList - Add an item to a uicontrol listbox.

AddToPath - Add a local directory to the path and return to the current directory.

AllCaps - Determines if the string is all capital letters. s may be a cell array

ArrayToLinspace - Converts an array a s function string.

AssignFHandle - Assign either a string or function handle depending on the MATLAB version.

Cell2DToStruct - Convert a structure into a cell array where columns of the array

CellToMat - Converts a cell array to a matrix.

CenterFigure - Find a position array that centers a figure

ChangePath - Change the path

CloseFigure - Close a figure

CloseIfHandle - Close h if it is a handle to a figure.

CloseMatFile - Closes every file not listed in kOpenPre.

CloseUIElement - Close a UIElement.

ConvertFortranFormatToC - Convert Fortran formats to C. Specifically A, I, D, E, F are converted.

CreateLatexTable - Creates a LaTeX table from x. x may be a two dimensional cell array or

DateChanged - Find a list of files in the directory who have been modified

DeBlankAll - Delete all blanks including spaces, new lines, carriage returns,

DeBlankLT - Delete leading and trailing blanks.

DeleteCell - Delete a cell element of a one dimensional cell array.

DeleteFromList - Delete the selected item from a list.

DeleteIfHandle - Close h if it is a handle

DeleteSuffix - Deletes the .xxx part of a name.

DirToCell - Converts a directory list into a cell array. The second argument can be used

DrawTreeDiagram - This function creates and draws a tree diagram.

EditDlg - Creates a dialog which requires a string as an answer

EditScroll - Implement a scrollable edit window

Equal - Returns one if a and b are identical. This function calls itself

ExportToPSSMatrix - Export two dimensional matrices to a file that can be read by pss_matrix.

FSWClock - This routine implements the flight software clock.

FindDirectory - Returns the path to a directory.

FindInFiles - Find all files that contain a specified string.

FindStringInFiles - Finds all instances of the string z in directory d.

Finder - Search m-files in your MATLAB path to find occurrences of a text string.

FixLineEndings - Make line endings consistent with the platform.

Fractal - Generates fractals. Pass a vertex list, face list, depth of the fractal

GUIColors - Set GUI colors. It saves the values in the file GUIColors.mat.

GetCurrentGUIObject - Gets the last uicontrol that was hit.

GetEntry - Gets the input from a vector of graphics handles and determines

GetFileRoot - Get the root name of a file (without the .xxx)

GetFileSuffix - Get the suffix of a file, i.e. the xxx of yyyyy.xxx.

GetHeaders - Finds all files in the directory d. Recursively searches through

GetInputFromString - Generates an output from a string.

GetListString - Get an element from a list uicontrol. Returns empty if there is no string

GetModificationDate - Gets the modification date.

GetNewTag - Get a new tag to identify the GUI. Uses clock and rand to generate a unique

GetUIElement - Get certain properties of UIElements.

HierarchicalListPlugIn - Create and manages a hierarchical list. Each element of the list is

IsValidField - Determine if a field exists and is not empty.

IsVersionAfter - Checks to see if the version of Matlab is after v

IsVersionBefore - Checks to see if the version of Matlab is before n

ListCases - List the switch cases that are included in a given file.

ListFunctions - List the functions that are called from a given file.

ListMemberFunctions - List the member functions that are included in a given function/file.

MakeCFMFile - Generates a new simulation configuration management file.

MatToCell - Converts a string matrix to a cell array.

MessageQueue - Creates a message queue. Once opened, it stays open. It accumulates messages

Num2Str1Line - Converts a matrix to a one line string.

OpenCFMFile - Open a configuration management file.

OpenFile - Open a file using a GUI if it is not specified.

OpenMat - Load a .mat file

PathDirectories - Generate a cell array list of all directories in the Matlab path.

PrintTitle - Print a title with --- under and above.

ProcessTag - Code used to process tags for sensors and actuators.

RadioButtons - Create radio buttons. Units are pixels. format is a cell array of the

Ramp - Generate a ramp signal at t0 from value v0 to vF in time interval t

ReadMVSStateSpace - Return the state space matrices from MultiVehicleSim and MultiSatSim. Also

RemoveContentsFile - Removes the 'Contents.m' file from a cell array of file names

RequiredFields - Returns 1 if the data structure g has the required fields in r

SaveStructure - Save a structure in a file. You will be able to read it in by typing

Selection - Selection GUI.

SetUIElement - Set certain properties of UIElements

StdAtm - Computes atmospheric density based on the standard atmosphere model.

StringToToken - Finds the first token in a string

StringToTokens - Converts a string to a list of tokens

StructToCell2D - Convert a structure into a cell array where columns of the array

StructureList - Creates a list of structures and variables. d may contain data

TabBox - Form:

TesselatePolygon - Tesselate Polygons

UIElement - Interface to PSS and Mathworks UI. PSS functions

ValidTime - Returns the time if valid. Otherwise returns empty. Valid time is

WaitBarManager - Manages the wait bar.

fixpopupuicontrol - This function found on Mathworks website as a bug-fix for MATLAB 7.

flength - Give the length of a file in bytes.


Graphics

AddAxes - Adds x,y,z coordinate axes to a figure.

AddDeltaModeToPlot - Add mode change to a plot.

AddView - Add view accelerators to a figure.

AddZoom - Add zoom-in (CTRL+I) and zoom-out (CTRL+O) accelerators to a figure.

AnimateVectors - Animate one or more time-varying vectors.

Animator - Animate a set of 2xN or 3xN matrices over N steps.

AttitudeCoordinates - Draw attitude coordinates.

AttitudeFrames - Draw attitude frames. You can add these to any 3D picture.

AxesCart - Draw axes

Axis3D - Adjust 3D axis

AxisEqual - Equalize the axes with a minimum relative size for the smallest axis.

BarPlot - Creates a bar plot of x where x(k) is assumed held constant from k to k+1

Centroid - Compute a centroid from a set of vertices.

Circle - Compute x y data for a 2-D Circle.

DrawFOV - Draw fields of view.

DrawImage - Draws an image in a figure window

DrawOrbitPlane - Draw an orbit plane. You can add this to any 3D plot.

Ellipsd - Generates an ellipsoid using the equation

Figui - User-interface to manage figure windows.

FunNames - Get Function Names

Icosahedron - Generate an icosahedron inscribed in a unit sphere.

ImageOverlay - This function displays an image file and overlays text boxes.

IntersectPlaneAndSphere - Finds the vector giving the intersection

LegendTitle - Add a title to the current legend.

Loc3D - Plot the location of points

LogLimit - Given a frequency vector, find the logarithm of the frequency

Map - Draws a 2 dimensional or three dimensional map. Turns on mouse driven

Mesh2 - Draws mesh plots. If either xCol or yRow are a scalar, draws a

Mesh3DMF - Generate a 3DMF for a mesh. This function will append ".t3d" to the file.

MeshEllipsoid - Draw an elliptical covariance display in real-time.

MeshSOR - Create a polygonal mesh from a surface of revolution. The origin

MeshToPatch - Convert a mesh to a patch. If the arguments v and f are input

NPlot - NPlot generates a plot on which the ylabels are character strings. The

NewFig - Creates a new figure

Normal - Compute a normal from a set of vertices using the Newell method.

Plot2D - Create a 2-dimensional plot page. Any number of plots may be entered.

Plot3D - Create a 3-dimensional plot.

Plot3Vector - Plot a 3 vector as x, y, z subplots as well as a combined plot.

PlotColor - Generate [r, g, b] for and index k = 1 to 100.

PlotDSimFile - Reads and plots data from a DSim log file.

PlotF - Plot a variable number of points. The function is called as:

PlotOrbitPage - Create a plot page with 2D and 3D views of an orbit.

PlotV - Draws plots of a set of 3*m-by-n vectors in 3D axes.

PltStyle - Edit this to globally change the plot styles for the plot labels

Polygon - Generate the properties for a polygon given vertices in the form v(3,n).

PrintFig - Prints specified figures. A black background may be specified.

QuickPlot - Plots output data from external simulations.

RealTimePlot - Plot real time

Rename - Renames a figure title. If f is not entered it renames the current figure.

STKAtt - Prints attitude data to STK-formatted file

STKOrbit - Prints orbit data to STK-formatted file.

SetCopy - Set the dimensions of the figure when copied or printed.

SetFont - Sets default fonts

SortFigs - Sort figure windows by cascading them.

Splash - Draw a splash screen.

StateDisplay - Draw a covariance display in real-time.

StopGUI - Stopping scripts

StrMtch - In a matrix with each row a string finds the matching string

TextS - Prints labels on a graph.

TimeCntrl - Perform actions specified by the time display

TimeGUI - Computes the time left to go in the simulation, the predicted finish

TimeLabl - Generates a time label given the maximum value of t. Also rescales t.

TimeToGo - Computes the time left to go in the simulation, the predicted finish

TitleS - Creates a title using the toolbox style settings.

WriteCM - Write a matrix for use in a C or C++ program.

XLabelS - Creates a label using the toolbox style settings

YLabelS - Creates a label using the toolbox style settings

ZLabelS - Creates a label using the toolbox style settings


Math

ACosD - Inverse cosine with output in degrees

ACot2 - Inverse cotangent -? ? z ? ?

ACot2D - Inverse cotangent -180° ¾ z ¾ 180°

ACotD - Inverse cotangent with output in degrees. -90° ¾ s ¾ 90°

ACscD - Cosecant with output in degrees

ASecD - Cosecant

ASinD - Inverse sine with output in degrees

ATan2D - Inverse tangent -180° ¾ z ¾ 180°

ATanD - Inverse tangent with output in degrees. -90° ¾ s ¾ 90°

AutoCorr - Generates the autocorrelation function for the input sequence.

Binomial - The binomial expansion of (x + y)^n

CFract - Computes the value of a continued fraction of the form

CHarm - Generate a series of cosine harmonics of the arguments

CHarmD - Generate a series of cosine harmonics of the arguments

ColCompR - Computes the right column compression of a matrix. Compresses the

ComplexToReal - Convert a matrix from complex to real. c is assumed to have columns of

CosD - Cosine with input in degrees

CosX - Computes the value of the cosine function given the argument in

CotD - Cotangent -¼/2 ¾ x ¾ ¼/2

Cross - Vector cross product. The number of columns of w and y can be:

CscD - Cosecant with input in degrees.

DLyapG - Find the solution for the Lyapunov equation apa' - p + q = 0, which is

DUnit - Derivative of the unit vector for r.

DelLZ - Deletes leading zeros from a vector.

DeltCirc - Find the angle between x and y. z = x - y;

DeltaEig - Computes the delta eigenvalues for a given a small perturbation of a, e

Dot - Dot product. The number of columns of w and y can be:

DupVect - Create a matrix with n rows or columns each of which equals the

Euler - Euler's method for numerical integration.

FTrunc - Simulates floating point truncation to -ƒ.

Factorl - Computes the factorial matrix for a matrix.

FloatToTwosComplement - Converts a float to two's complement array. For example:

FourierSeries - Generates the Fourier Series sine and cosine coefficients of a signal using

GJInv - Matrix inverse using Gauss-Jordan elimination with partial pivoting.

GenSub - Subtract two matrices where NaN - NaN or inf - inf == 0

Heavisde - Heavside function. H = 1 x „ 0, otherwise = 0

HypgF1 - Computes the value of the hypergeometric function

HypgFr - Computes the value of the ratio of hypergeometric functions

HypgMr - Computes the value of the confluent hypergeometric ratio

IntExpR - One dimensional interpolation and extrapolation on the rows of a.

IntExt - One or two dimensional interpolation and extrapolation. If no outputs

Interp1D - Performs a linear interpolation:

InterpolateCircle - Interpolates between x1 and x2 when x1 and x2 lie in a circle. When

IntersectLineAndCone - Compute the intersection of a line and a cone. The line is defined by a

IntersectLineAndEllipsoid - Compute the intersection of a line and ellipsoid. Always returns

Inv3x3 - Inverse of a 3x3 matrix.

InvP - The product form of the inverse:

IsSing - Outputs 0 if the matrix is singular

IsZero - Set = 0 if the matrix is all zeros.

JCart2Sp - Converts cartesian to spherical coordinates. Spherical coordinates are

JSp2Cart - Computes the Jacobian for converting from spherical to

Jacobian - This function computes the Jacobian matrix for a right hand-side.

JacobianODE - This function computes the Jacobian matrix for a right hand-side.

LEPDS - Solves the problem ax = b when a is positive definite symmetric

LSSVD - Solves ax = b using the singular value decomposition

LeastSq - Find a weighted least squares curve fit to the overdetermined

LyapG - Solve the general Lyapunov equation ap + pa' + q = 0

Mag - Given a 3-by-n matrix where each column represents a vector, return a

ModNewt - Finds the solution to f(x) = 0 given df(x)/dx when only one

NLEqSolver - Solves a set of equations for zero using Newton's method.

NLEqSolverWrapper - Wraps the Newton's method solver by trying several values.

NewStats - Calculates the new standard deviation and average.

NewtRaph - Finds the solution to f(x) = 0 given df(x)/dx when only one

Odd - 1 if the value is odd

OptimalTrajectory - Computes the control for an optimal trajectory using simplex for a fixed

PAL - Generates the Associated Legendre Functions of the first kind

PDAL - Generates Associated Legendre Functions of the first kind and derivatives

PGauss - Computes the Gaussian form of the Legendre functions.

Pade - Create a Padé approximant of exp(sT)

Perpendicular - Finds perpendicular vectors to a such that Dot(b,a) = 0.

Product - Computes product of the terms in a vector

R2P5 - Rounds towards zero to the nearest 1/2

RK2 - Second order Runge-Kutta. Called function is of the form:

RK4 - Fourth order Runge-Kutta. Called function is of the form:

RK45 - Fourth/fifth order Runge-Kutta.

RoundN - Round to n decimal places

RowCompU - Computes the upper row compression of a matrix. Compresses the

SCHarm - Generate a series of sine and cosine harmonics of the arguments

SCHarmD - Generate a series of sine and cosine harmonics of the arguments

SCSeries - Compute a series a + sum(bn sin(n wo t)) + sum(cn cos(n wo t))

SHarm - Generate a series of sine harmonics of the arguments

SHarmD - Generate a series of sine harmonics of the arguments

SXV - Multiplies a scalar times a vector. Each column in the vector is

SecD - Secant

Secant - Finds the solution to f(x) = 0. If there are multiple roots, x

Sep - Separate a matrix or vector based on the criteria entered in s. For example

Simplex - Uses the simplex method to minimize the cost when solving the problem

Simplex2 - Computes the solution to the simplex problem with an optional

SimplexOld - Uses the simplex method to minimize the cost when solving the problem

SinD - Sine with input in degrees

SinX - Computes the value of the sine function given the argument in degrees.

Skew - Converts a vector into a skew symmetric matrix.

SkewSq - Computes the product of two skew symmetric matrices derive from vectors. If

SkewSymm - Converts a vector into a skew symmetric matrix

SphJacobian - This function is the application to the chain rule to a function U

SubPoly - Subtract two polynomials so that c = a - b.

SumC - Always sums by column even if x is a single row.

SumV - Sum a set of vectors in a 3-by-n matrix

TanD - Tangent with input in degrees

TriangleWave - Generates a triangle wave. 0 is the beginning and 2*pi is the end.

TwosComplementToFloat - Converts a two's complement array to float.

Unit - Unitize vectors by column.

UnwrapPhase - Unwrap a vector of angular values to change continuously.

VerSin - Produces a smoothly varying function from 0 to xMax.

WrapPhase - Wrap a phase angle (or vector of angles) to keep it between -pi and +pi


Plugins

Telemetry - Generates a set of telemetry pages.

TelemetryOffline - This plots telemetry files previously saved by Telemetry.

TelemetryPlot - Plot real time in a single window.

TimePlugIn - Create a time GUI plug in.


Probability

BinomialTheorem - Computes the binomial theorem.

CRand - Given a covariance matrix, c, finds a transformation matrix

CableTensionExample - Cable tension example.

Combinations - The number of combinations of r articles in n samples.

ConfidenceInterval - Computes the confidence interval.

CovarianceRHS - Generates the covariance derivative. The covariance matrix is entered as

EMarkov - Find the correlation time and the mean squared value for a Markov sequence.

ErrorCombination - Combine errors given a function.

GaussianCPDF - Compute the cumulative probability density function for

GaussianPDF - Compute the probability density function for a Gaussian distribution.

Markov - Generate random output from a Gauss-Markov process. The

RMarkov - Generates the autocorrelation function for a Markov Process.

RandPM - Generates uniform random matrices between -1 and +1

Random - Compute a random nxm matrix

SMarkov - Generates the spectral function for a Markov Process.

SignTest - Compare the relative accuracy of two signals.


SimulinkIF

SFunc - An example s-function that interfaces mfiles to Simulink. It implements


Time

DN2Date - Computes the date from the day number and year. January 1 is day 1.

DNString2Date - Converts a day number string to a date.

DTAToDTS - Converts the date time array to the date time structure

DTSToDTA - Converts the date time structure to the date time array

Date2DN - Compute the day number from the date. Uses the format from clock. If no

Date2FY - Computes the fractional year from the date.

Date2JD - Compute the Julian Date from the date. Uses the format from clock. If no

DateStringToJD - Convert a date string to Julian date. The date string

DeltaT - Computes the difference between UT1 and TT based on the Julian date.

FindSolsticeOrEquinox - Finds the Julian Date for solstices and equinoxes.

JD2000 - Returns the Julian Date for J2000.0 0d 0h UT

JD2DN - Compute the day number from Julian date.

JD2Date - Compute the calendar date from the Julian date. Uses the format

JD2Day - Computes the day of the week from Julian day number.

JD2MJD - Converts Julian date to Modified Julian Date

JD2T - Converts Julian days to centuries from J2000.0

JDToDateString - Convert Julian Date to the form '04/20/2000 00:00:00'

LeapYear - Determines if a year is a leap year

MJD2JD - Converts Modified Julian Date to Julian date

SystemTime - Provides the system time to the software.

T2JD - Converts Julian centuries from J2000.0 to days

TAI2TT - Converts Terrestrial atomic time to Terrestrial dynamic time

TDB2TT - Converts barycentric dynamical time; used as time-scale

TT2TAI - Converts Terrestrial (dynamic) time to Terrestrial atomic time

TT2TDB - Converts terrestrial dynamic time to barycentric dynamical

TT2UT1 - Converts TT (Terrestrial (dynamic) Time)

TimeStringToJD - Convert a time string to Julian date. The time string

UT12TT - Converts UT1 (time scale based on the rotation of the earth)

YPF2T - Converts years in fractional form, e.g. 1993.5 to T


Demos/AStar

AStarSearch3DManeuverDemo - Demonstrate A* for a close orbital maneuver.

AStarSearchGrid1Demo - Test AStarSearch using a grid with obstacles.

AStarSearchGrid2Demo - Test AStarSearch using a grid with obstacles.

AStarSearchManeuverDemo - Demonstrate A* for a close orbital maneuver.

AStarSearchOrderGridDemo - Test AStarSearch using a grid with randomly placed obstacles.

AStarSearchRandomGridDemo - Test AStarSearch using a grid with randomly placed obstacles.


Demos/Control

CCVDemo - Demonstrate eigenvector assignment using a CCV Model.

CCVModel - CCV aircraft model.

ControlExample - Put a series of compensators on a double integrator.

LQFullState - Demonstrate full state feedback. Steps:

ModelMatchingControl - Demonstrate model matching control using a single integrator plant.

PIDDemo - Compare the closed-loop response of a linear system with PID control

PWMVsZOH - Shows the difference between a PWM and a ZOH.

SimpleControl - Simple controller.

TFiltRO - Demonstrates how to implement a digital filter.

TNoise - Designs noise filters and simulates them to show how they attenuate

TPID - PID Controller for a double integrator.

TPIDSat - Demonstrates the effect of integrator windup and how to fix it.

TSimplex - Demonstrate simplex.

TSmooth - Demonstrate fixed interval smoothing using a Kalman Filter


Demos/Database

TConstant - Demonstrate the Constant database. You can search for parameters stored


Demos/General

UIElementDemo - Demonstrate UIElement and other controls.


Demos/Graphics

DemoRealTimePlot - Demonstrate real-time plots

TimeGUIDemo - Demonstrates the TimeGUI plugin in a loop.


Demos/Help

FileHelpDemo - Demonstrate the online file help


Demos/Math

DoggyProblem - Demonstrate the BinomialTheorem for the doggy problem.

GunProblem - Demonstrate the BinomialTheorem for the gun problem.

THyperG - Demonstrate hypergeometric functions.


Demos/Plugins

TelemetryDemo - Telemetry Demo


SVN Revision: 11981


Back to API main page