practica1 - % % Prctica #1 % % Respuesta Dinmica de...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % % Prctica #1 % % Respuesta Dinmica de Sistemas de 1 y 2 Orden % % 21/Sept./2002 % % Daniel U. Campos Delgado (UASLP) % % Parmetros Iniciales % s=-1; z=0.5; wn=1; w I1=1; I2=1; I while I1~=3, I1=menu('Simulacin de Respuesta de Sistemas de 1 y 2 Orden','1 Orden','2 Orden','Salir'); if I1==1, while I2~=4, I2=menu('TF de 1 Orden','Ubicacin del polo','Respuesta al impulso','Respuesta al escaln',... 'Regresar al menu anterior'); if I2==1, dlgTitle='Ubicacin del polo'; prompt={'Parte real ='}; def={num2str(s)}; answer=inputdlg(prompt,dlgTitle,1,def); answer=str2double(answer); s=answer; elseif I2==2 | I2==3, hold_fig=questdlg('Mantener las Grficas Anteriores'); I3=menu('Color del Trazo','Azul','Rojo','Verde','Magenta','Cyan','Negro'); if I3==1, color='b'; elseif I3==2, color='r'; elseif I3==3, color='g'; elseif I3==4, color='m'; elseif I3==5, color='c'; else color='k'; end; H=tf(1,[1 -s]); if I2==2, [Y,T]=impulse(H); tit='Respuesta al impulso'; else I2==3, [Y,T]=step(H); tit='Respuesta al escalon'; end; figure(1); if hold_fig(1)=='Y';...
View Full Document

This note was uploaded on 12/01/2009 for the course Q q taught by Professor Q during the Spring '09 term at Universidad Autonoma de Nuevo Leon - School of Business.

Page1 / 3

practica1 - % % Prctica #1 % % Respuesta Dinmica de...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online