05-04-2009 10:02 AM
kbx wrote:1. In yaw graph - I couldn´t load the data properly. It is necesarry to load it from not calibrated file (MT_00323272_zada.txt). I tryed to load 14th column (YAW), but all values are zero.
In almost all programming languages arrays use zero-based indices. Thus the first column is index=0. Therefore, the 14th column would be index=13.
2. How could I calculate and screen results of time?t1=(x2-x1)/120
t2=(x3-x2)/120
t3=(x4-x3)/120
t4=(x5-x4)/120
t5=(x6-x5)/120
t6=(x7-x6)/120
I'm not sure I understand the question. You have the individual values, so you're just doing simple subtraction.
3.I still don´t completely understand blocks,which are on the picture. Why there is subset array with Lenght (10), why mean and why mean is initial condition and also final condition
That little bit of code is getting the initial and final conditions for the derivative functions. That was based on the accX, accY, and accZ waveform that had the same initial and final values. All that does is simply take the first 10 values and average them. I did not look at the other waveforms, so I don't know if the initial and final conditions would be the same.
Given your revised code: