PSS Common Module
MATLAB toolboxes for aerospace analysis
quat.m File Reference

PSS internal file version information. More...

Functions

function quat (in x)
 Create an object of class quat. More...
 
function ctranspose (in a)
 Default in the Space Shuttle Convention. More...
 
function get (in a)
 PSS internal file version information. More...
 
function scalar (in a)
 PSS internal file version information. More...
 
function vector (in a)
 PSS internal file version information. More...
 

Detailed Description

PSS internal file version information.


Copyright (c) 1997 Princeton Satellite Systems, Inc. All rights reserved.



Date
2015-01-15
Revision
8fdf9a329962b7113ca51ebe27ec9155ace5d8a7

Returns the vector part of a quaternion.

Function Documentation

◆ ctranspose()

function ctranspose ( in  a)

Default in the Space Shuttle Convention.


Copyright (c) 1997 Princeton Satellite Systems, Inc. All rights reserved.



PSS internal file version information


Date
2016-03-14
Revision
2da09fbf46418658d86af477892840a08f9cc907

Computes the transpose of a quaternion.


Form

b = ctranspose( a )


Inputs

a           (:)   Object of type quat

Outputs

b           (:)   Object of class quat

◆ get()

function get ( in  a)

PSS internal file version information.


Copyright (c) 1997 Princeton Satellite Systems, Inc. All rights reserved.



Date
2015-01-15
Revision
8fdf9a329962b7113ca51ebe27ec9155ace5d8a7

Gets the scalar and vector equivalent of a quat.


Form

[s, v] = get( a )


Inputs

a           (:)   Object of type transmat

Outputs

s           (1,1) Scalar part
v           (3,1) Vector part

Referenced by Deactivate(), and MLog().

◆ quat()

function quat ( in  x)

Create an object of class quat.

You can input:

4-by-1 matrix - assumed to be a quaternion
3-by-1 matrix - assumed to be an array of angles
3-by-3 matrix - assumed to be a transformation matrix

Form

q = quat( x )


Inputs

x       (4,1) Quaternion
(3,3) Matrix
(3,1) Array of angles

Outputs

q      (1,1) Object of class  quaternion.

◆ scalar()

function scalar ( in  a)

PSS internal file version information.


Copyright (c) 1997 Princeton Satellite Systems, Inc. All rights reserved.



Date
2015-01-15
Revision
8fdf9a329962b7113ca51ebe27ec9155ace5d8a7

Returns the scalar part of a quaternion.


Form

s = scalar( a )


Inputs

a       (:,:) Quaternion

Outputs

s       (1,1) Scalar part

◆ vector()

function vector ( in  a)

PSS internal file version information.


Copyright (c) 1997 Princeton Satellite Systems, Inc. All rights reserved.



Date
2015-01-15
Revision
8fdf9a329962b7113ca51ebe27ec9155ace5d8a7

Returns the vector part of a quaternion.


Form

s = vector( a )


Inputs

a       (:,:) Quaternion

Outputs

s       (3,1) Scalar part