Graficos Forma Onda

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Los siguientes voltajes han sido graficados con el software MATLAB,

clear;close all;clc;
t=-2:0.01:3;
for n=1:length(t)
if(t(n)<0)
v1(n)=-10;
else
v1(n)=20*exp(-2*t(n))+30;
end
end
subplot(321);plot(t,v1);grid on
xlabel('Tiempo');ylabel('Voltaje')
title('V1')

t=-2:0.01:3;
for n=1:length(t)
if(t(n)<0)
v2(n)=-10;
else
v2(n)=20*exp(-2*t(n))-10*exp(-5*t(n))+30;
end
end
subplot(322);plot(t,v2);grid on
xlabel('Tiempo');ylabel('Voltaje')
title('V2')

t=-1:0.001:3;
for n=1:length(t)
if(t(n)<0)
v3(n)=20;
else
v3(n)=exp(-5*t(n))*(50*t(n)+30)-20;
end
end
subplot(323);plot(t,v3);grid on
xlabel('Tiempo');ylabel('Voltaje')
title('V3')

t=-1:0.001:3;
for n=1:length(t)
if(t(n)<0)
v4(n)=0;
else
v4(n)=exp(-5*t(n))*(-
8*cos(10*t(n))+5*sin(10*t(n)))+16;
end
end
subplot(324);plot(t,v4);grid on
xlabel('Tiempo');ylabel('Voltaje')
title('V4')
t=-1:0.001:1;
for n=1:length(t)
if(t(n)<0)
v5(n)=-20;
else
v5(n)=exp(-10*t(n))*(-
10*cos(50*t(n))+15*sin(50*t(n)))+10;
end
end
subplot(325);plot(t,v5);grid on
xlabel('Tiempo');ylabel('Voltaje')
title('V5')

t=-1:0.001:2;
for n=1:length(t)
if(t(n)<0)
v6(n)=0;
else
v6(n)=20*exp(-4*t(n))-50*exp(-6*t(n))+30;
end
end
subplot(326);plot(t,v6);grid on
xlabel('Tiempo');ylabel('Voltaje')
title('V6')

You might also like