Why can't you have Matlab read in the file with the gyro and accelerometer data, make it into a matrix, and process the data through a quaternion transformation to whatever reference frame the quaternions relate the information to?
There are several text books out there that have the quaternion...
I am interested in obtaining information concerning atmospheric drag for a spacecraft in a relatively low orbit. How much more accuracy can I get from using rarified models than by using a traditional acceleration-due-to-drag equation?
Do you want to determine the orbit analytically or numerically?<br><br>Analytically, you can simply take your spacecraft state (i.e. pos and vel) and convert this to keplerian elements. However, you say that you're interested in plotting this as a function of time...<br><br>so, I would probably...