Matlab学习笔记(三)
单摆(二)
一、单摆的运动方程
for n=1:iterations
% Iteratively solve equations of motion using Euler's Method
theta(n+1,:)=theta(n,:)+omega(n,:)*tStep; % new angular position
omega(n+1,:)=omega(n,:)+alpha(n,:)*tStep; % new angular velocity
alpha(n+1,:
原创
2020-08-04 01:03:11 ·
210 阅读 ·
0 评论