Post on 24-Jan-2023
Ejercicio 7
t=[0:0.001:15];a=step(num,den,t);plot(a,t)plot(t,a,'r')title('Respuesta al escalón unitario');xlabel('tiempo(segs) ');
t=[0:0.001:15];b=lsim(num,den,t,t);plot(t,b,'r')title('Respuesta a rampa unitaria');xlabel('tiempo(segs) ');
t=[0:0.001:15];c=impulse(num,den,t);plot(t,c,'r')title('Respuesta a impulso unitario');xlabel('tiempo(segs) ');
Ejercicio 9
Con el códigot=0:0.005:5;num=[10];den=[conv([1 2 0],[0 1 4])];[y,x,t] = step(num,den,t); r=1; while y(r) < 1.0001; r=r+1; end;tiempo_subida=(r-1)*0.005
tiempo_subida = 1.5050
[ymax,tp]=max(y);tiempo_pico=(tp-1)*0.005
tiempo_pico = 5sobreelongacion_max=ymax-1
sobreelongacion_max = 4.3126
>> s=1001; while y(s)>0.98 & y(s)<1.02; s=s-1; end;>> tiempo_asentamiento=(s-1)*0.005
tiempo_asentamiento = 5