Mechsys.m
上传用户:eighthdate
上传日期:2014-05-24
资源大小:270k
文件大小:0k
源码类别:

其他行业

开发平台:

Matlab

  1. function xdot = mechsys(t,x);   % returns the state derivatives
  2. F = 25;                          % Step input
  3. M =1; B = 5; K = 25;
  4. xdot = [x(2) ; 1/M*( F - B*x(2) - K*x(1) ) ];