CodePudding user response:
A=[]; % acceleration valuex=0; % set initial displacement
T=0.01; % set sampling interval
Where v0=0.
% set initial speed
For I=2: length (a)
V=(a (I - 1) + a (I))/2 * T; % speed variation
V1=where v0 + v.
W (I)=v1;
X1=(v1 + where v0) * T/2;
X=x + x1;
Where v0=v1;
end
CodePudding user response:
The building Lord have a code? I also encountered this problem nowCodePudding user response:
The simplest is euler step nCodePudding user response:
Someone do this? Have a code?