practica2 - % % % % % % % % % % % % Sistemas de Control 1...

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

View Full Document Right Arrow Icon
% % Sistemas de Control 1 % % Otoño 2002 % % Practica #1 % % Simulación del Pendulo bajo Condiciones Iniciales % % Septiembre, 2002 % % Daniel U. Campos Delgado (UASLP) % clear all; rad2deg=180/pi; r % Default System Values % g=9.81; % [m/s^2] Gravity acceleration l=0.1; % [m] Pendulum length b=0.6; % Friction coefficient b %Initial Conditions % theta0=pi/3; % [rad] Initial angle theta0_dot=2; % [rad/s] Initial angle velocity t % Simulation Parameters % tsim=50; % [s] Length of simulation t hold_fig='Yes'; color='b'; I1=1; animation_on=0; while I1~=3, I1=menu('Simulación del Pendulo bajo Condiciones Iniciales','Parámetros del Sistema','Simulación','Salir'); if I1==1, I2=menu('Parámetros del Sistema','Características Físicas','Condiciones Iniciales'); if I2==1, dlgTitle='Características Físicas'; prompt={'Longitud del Pendulo [m]','Coeficiente de Fricción'}; def={num2str(l),num2str(b)}; answer=inputdlg(prompt,dlgTitle,1,def); answer=str2double(answer); l=answer(1); b=answer(2);
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the 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 / 2

practica2 - % % % % % % % % % % % % Sistemas de Control 1...

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