Pendulum.m
资源名称:power.rar [点击查看]
上传用户:eighthdate
上传日期:2014-05-24
资源大小:270k
文件大小:0k
源码类别:
其他行业
开发平台:
Matlab
- function xdot = pendulum(t,x); % returns the state derivatives
- W =2; L = .6; B = 0.02; g = 9.81; m =W/g;
- xdot = [x(2) ; -B/m*x(2)-W/(m*L)*sin(x(1)) ];