Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
dbForge Studio for PostgreSQL 2.3.212
HTMLPad 2020 16.2
WeBuilder 2020 16.2
Rapid CSS 2020 16.2
Rapid PHP 2020 16.2
C# HTML to PDF 2020.8.1
Flowrigami 1.0.0.1
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Top Code
IcrediBB Bulletin Board System 1.0
Uber Clone with Safety Measure Addons 2.0
HTMLPad 2020 16.2
Extreme Injector 3.7
MLM Unilevel Plan Software 1.0.2
Anteil open source CRM 1.I
Tadpoles .0.1
Shop Management CRM 1
HomepageSearchEngine 3.0
PHP Search Engine (SEARCpHp)
Video Conference Website Scripts 2.86
Flash Games Page 1.0.5
LMS Algorithm Demonstration 1.0
Ether MMORPG 0.1
Audit Trail 1.1.12
Top Rated
Uber Clone with Safety Measure Addons 2.0
Answers phpSoftPro 3.12
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Apphitect Airbnb Clone Script 1.0
Deals and Discounts Website Script 1.0.2
Pro MLM 1
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
Quaternion Library for Simulink 1.0
File ID: 78663






Quaternion Library for Simulink 1.0
Download Quaternion Library for Simulink 1.0http://www.mathworks.comReport Error Link
License: Freeware
File Size: 71.7 KB
Downloads: 10
Submit Rating:
Quaternion Library for Simulink 1.0 Description
Description: Quaternion Library for Simulink
Version 1.7 (JASP) 12-Dec-2009

This is a library of blocks that allows manipulation of quaternions.

The available blocks are:

Quaternion Normalize
Quaternion Conjugate
Quaternion Multiply

Quaternion Propagation
Quaternion Vector Transform
Quaternion Vector Rotation

Quaternion Decomposition
Quaternion to DCM
DCM to Quaternion

Row Major to Matrix
Matrix to Row Major

For purposes of this library, a quaternion, q, is just a four element vector where q(1:3) is the "imaginary" or "vector" portion of the hypercomplex number, and q(4) is the "real" or "scalar" portion. Consequently, if q represents a rotation, then:

q(1) = v1*sin(phi/2)
q(2) = v2*sin(phi/2)
q(3) = v3*sin(phi/2)
q(4) = cos(phi/2)

where phi is the amount of rotation about the unit vector [v1 v2 v3].

The DCM's produced by the "Quaternion to DCM" block and used by the DCM to Quaternion block are written in row major form instead of normal MATLAB matrices. Back when this library was first developed, Simulink signals could not be matrices, so were written in the C-friendly row-major format. To prevent the breakage of models that were written to use the row major signals, the interface to the blocks have not been changed but two blocks were added to aid with the translation of matrices to/from row major format.

IMPORTANT NOTE: For purposes of quaternion/DCM equivalence, the relationship is chosen to be:

R v = q* v q

Therefore a "transform" is (q* v q) and a "rotation" is (q v q*). This follows the convention used in "Spacecraft Attitude Determination and Control", edited by James R. Wertz, Copyright 1978. Note that many recent uses of quaternions choose the opposite convention (the "left" quaternion being the equivalent), including many computer graphics libraries.

See also QUATERNIONS, the quaternion manipulation toolbox for the MATLAB command line. RM2MAT and MAT2RM functions provided by the Matrix Library for Simulink are also useful for handling row-major form matrices.

License: Freeware

Related: sinphi, about the, added, manipulation, aid, cosphi, Note, wertz copyright, developed, Library, Translation, jasp, dec, quaternions, also useful, back, blocks, attitude determination

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 71.7 KB

Downloads: 10



More Similar Code

Multilayer Perceptron Neural Network Model and Backpropagation Algorithm for Simulink.
Multilayer Perceptron Neural Network Model and Backpropagation Algorithm for Simulink.

Marcelo Augusto Costa Fernandes
DCA - CT - UFRN
mfernandes@dca.ufrn.br



Ruby Extension Library for Cradle Systems Engineering Tool



CronEdit is a Ruby editor library for crontab. It allows you to manipulate individual cron entries in crontab very comfortably from your Ruby code.



cgic is an ANSI C-language library for the creation of CGI-based World Wide Web applications. cgic can be used free of charge, provided that a credit notice is provided online. Alternatively, a nonexclusive Commercial License can be purchased,...



BtrUtils Library for Delphi is designed for using native Btrieve API in applications created with Borland Delphi.



Euler Angles To Quaternion Conversion for six basic sequence of rotations around X(Roll),Y(Pitch) and Z(Yaw) axis.

Allowed Sequences: xyz, xzy, yxz, yzx, zxy, zyx.



This block for Simulink provides a chirp source for stimulating unknown system dynamics. The block has been developed specifically for the purpose of system identification, however it should be of interest to anyone looking for a robust and...



The Radial Basis Function (RBF) using pseudo-inverse method for Simulink.
The Radial Basis Function (RBF) with fixed centers selected at random and
pseudo-inverse method for Simulink.

Marcelo Augusto Costa Fernandes
DCA -...



The Radial Basis Function (RBF) with LMS algorithm for Simulink.
The Radial Basis Function (RBF)
Batch-mode training
Fixed centers selected at random
The Gaussian basis functions
Computing the output weights with LMS...



Library for reading and writing MATLAB binary files (aka MAT-Files) in LabVIEW. Currently works specifically with Version 7 MAT-File format. Written in pure G (LabVIEW source).

User Review for Quaternion Library for Simulink
- required fields
     

Please enter text on the image