Beruflich Dokumente
Kultur Dokumente
Realizar el análisis en frecuencia de los siguientes sistemas con sus respectivas gráficas.
Sistema 1
1
𝐺(𝑠) =
0.1𝑠 + 1
Sistema 2
1
𝐺(𝑠) =
𝑠+1
Sistema 3
1
𝐺(𝑠) =
10𝑠 + 1
Graficas de magnitud de los 3 sistemas.
Código de programación para encontrar la magnitud y fase de los sistemas sin utilizar el comando bode.
clear all
clc
%% Desarrollo.
w=0:0.0001:100; % donde w es la frecuencia
m_gs1=-20*log10(sqrt(1+(0.01.*w.^2)));
m_gs2=-20*log10(sqrt(1+w.^2));
m_gs3=-20*log10(sqrt(1+(100.*w.^2)));
ang_Gs1=-atan(0.1.*w);
ang_Gs2=-atan(w);
ang_Gs3=-atan(10.*w);
%% Graficas de magnitud y fase de los sistemas.
figure(1)
subplot(311);semilogx(w,m_gs1);title 'Sistema 1';xlabel 'FRECUENCIA';ylabel 'MAGNITUD';grid on; hold on
subplot(312);semilogx(w,m_gs2);title 'Sistema 2';xlabel 'FRECUENCIA';ylabel 'MAGNITUD';grid on; hold on
subplot(313);semilogx(w,m_gs3);title 'Sistema 3';xlabel 'FRECUENCIA';ylabel 'MAGNITUD';grid on; hold on
figure(2)
subplot(311);semilogx(w,ang_Gs1);title 'Sistema 1';xlabel 'FRECUENCIA';ylabel 'FASE';grid on; hold on
subplot(312);semilogx(w,ang_Gs2);title 'Sistema 2';xlabel 'FRECUENCIA';ylabel 'FASE';grid on; hold on
subplot(313);semilogx(w,ang_Gs3);title 'Sistema 3';xlabel 'FRECUENCIA';ylabel 'FASE';grid on; hold on