[adsense:responsibe:9545213979]
s=%s; g=1/(s*(s+1)*(0.5*s+1)); gc=5*(21.74*s+1)/(236*s+1); gc2=5*(10*s+1)/(100*s+1); gt=g /. 1; gt2=g*gc /. 1; gt3=g*gc2 /. 1;
gs=syslin('c',gt); gts=syslin('c',gt2); gts2=syslin('c',gt3); clf; t=0:0.02:30; y=csim(t,t,gs); yt=csim(t,t,gts); yt2=csim(t,t,gts2); plot(t,t,'r'); plot(t,y,'k'); plot(t,yt,'g'); plot(t,yt2,'b'); xgrid; legend(['rampa';'no compensado';'compensado';'libro']) xtitle('Respuesta a una rampa','t(seg)','y(t)')
Añadir nuevo comentario