May I ask how can we create iteration function using the previous data that was imported and calculated. I have tried using {i, ndata}, on the equation function but it wasn't working.
Data1 = Table[{rawdata[[i, 4]], rawdata[[i, 5]], rawdata[[i, 6]]}, {i,
ndata}] // MatrixForm
-119250, -96272.3, 99360.9 -101295, -101074, 81934.5 -78703.3, -91442, 62798.3 -4002.85, -15345.5, 3604.86 -29904, -42238, 23428.3 49070, 29595.8, -33869.8
I would need to input this values at Wk1 {X,Y,Z} into this first equation. Initial location Q0={0,0,0}, Q1 will have the new calculated position in {X1,Y1,Z1}
Q1= Q0 +Wk1*Δt (Equation 1)
Q2= Q1 +Wk2*Δt (Equation 2)
Qn= Qn-1 +WknΔt (Equation n, n=ndata points)
Δt=1/200
constant variable
Are there any short function that I can create an iteration function calculate all 433 ndata points, based on the raw data input or do I have to break down {x,y,z} into an individual matrix: {x}, {y} and {z} to perform the iteration function.
Appreciate your advice. Thank you.
JL.
MatrixForm
toData1
is likely a problem (Though you never useData1
in the remainder of the question..). DoData1=Table[...] ; MatrixForm[Data1]
$\endgroup$