1
7/18/2019 CodigoMatLab1 http://slidepdf.com/reader/full/codigomatlab1 1/1 >> l1=1; >> l2=0.2; >> M=1; >> B=3; >> g=9.81; >> c1=l2*cosd(30)/(M*l1^2) c1 =  0.1732 >> c2=B/(M*l1^2) c2 =  3 >> c3=(g/l1)*(tand(30)*sind(30)+(cosd(30)/l1)) c3 =  11.3276 >> num=[c1] num =  0.1732 >> den=[ 1 c2 c3] den =  1.0000 3.0000 11.3276 >> G=tf(num,den) G =  0.1732  -----------------  s^2 + 3 s + 11.33  Continuous-time transfer function. >> step(G,'ob') >> hold on >> grid on >>

CodigoMatLab1

Embed Size (px)

DESCRIPTION

Matllab! para Ing. De control

Citation preview

Page 1: CodigoMatLab1

7/18/2019 CodigoMatLab1

http://slidepdf.com/reader/full/codigomatlab1 1/1

>> l1=1;>> l2=0.2;>> M=1;>> B=3;>> g=9.81;>> c1=l2*cosd(30)/(M*l1^2)

c1 =

  0.1732

>> c2=B/(M*l1^2)

c2 =

  3

>> c3=(g/l1)*(tand(30)*sind(30)+(cosd(30)/l1))

c3 =

  11.3276

>> num=[c1]

num =

  0.1732

>> den=[ 1 c2 c3]

den =

  1.0000 3.0000 11.3276

>> G=tf(num,den)

G = 0.1732

  -----------------  s^2 + 3 s + 11.33 Continuous-time transfer function.

>> step(G,'ob')>> hold on>> grid on>>