Be the first to rate this file! 13 Downloads (last 30 days) File Size: 1.86 KB File ID: #39374

Use of quaternions to numerically solve the problem of the spinning top

by

 

Use of quaternions to numerically solve the problem of the spinning top.

| Watch this File

File Information
Description

% Use of quaternions to numerically solve the problem of the spinning top
% The top is released with an angular velocity of 1000 revolutions per
% minute(rpm) around its axis of symmetry (the body z axis), which makes
% an angle of 60 ° with the vertical (the inertial Z axis).

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
21 Dec 2012 Dan Couture

Ran into some bugs on this:

* Matrix B wasn't declared
* Should specify g
* Add a transpose to MoX to make it a 3x1
* QXx was not defined
* use a incremented variable for t instead of w(t)
* You'll also probably need to normalize the quaternion regularly to avoid additive errors.

Contact us