I'm new to Python, but I'm trying to learn. I'm trying to recreate a Matlab for
loop in Python. The Matlab for
loop looks like this:
for i = 2:(L-1)
Acceleration_RMT5_x(i-1) = (RMT5(i+1,1)-2*RMT5(i,1)+RMT5(i
1,1))/(1/FrameRate)^2;
end
The datatype is float64, and is a 288x1 vector. My Python so far is:
for i in RMT5x:
Acceleration_RMT5x = RMT5x[i+1] -2*RMT5x[i] +RMT5x[i-1]/(1/250)^2)
This gives me "invalid syntax".
What do I need to fix to resolve this error?