Está en la página 1de 11

PEDRO JAVIER CASTRO GANCHOZO

EJERCICIO A
FUNCIONES
function y=efe1(t)
y1=0
y2=-1
y3=1
y=y1.*(t<-1 & t>1) + y2.*(t>=-1 & t<0)+ y3.*(t>=0 & t<=1)
end

function y=rect(t)
y=us(t+0.5)-us(t-0.5);
end

%primera función

t=-3:0.01:4;
y = efe1(t);
figure(1)
plot(t,y)
xlabel("t")
ylabel("y")
title("1")
grid on

%segunda función
h = rect(t*1/2);
figure(2)
plot(t,h)
xlabel("t")
ylabel("h")
title("2")
grid on

%multiplicación de ambas funciones


g = y.*h
figure(3)
plot(t,g)
xlabel("t")
ylabel("g")
title("MULTIPLICACION")
grid on

EJERCICIO B

FUNCIONES
function y=efe1(t)
y1=0
y2=-1
y3=1
y=y1.*(t<-1 & t>1) + y2.*(t>=-1 & t<0)+ y3.*(t>=0 & t<=1)
end

function y=efe2(t)
y1=0
y2=-1
y3=t
y4=1
y=y1.*(t<-1) + y2.*(t==-1)+ y3.*(t>-1 & t<1) + y4.*(t==1)
end

%primera función

t=-3:0.01:4;
y = efe1(t);
figure(2)
plot(t,y)
xlabel("t")
ylabel("y")
title("1")
grid on

%segunda función
h = efe2(t);
figure(1)
plot(t,h)
xlabel("t")
ylabel("y")
title("1")
grid on

%multiplicación de ambas funciones


g = y.*h
figure(3)
plot(t,g)
xlabel("t")
ylabel("g")
title("MULTIPLICACION")
grid on

ejercicio g

t=-3:0.01:4;

%primera función

y = -t;
figure(1)
plot(t,y)
xlabel("t")
ylabel("y")
title("1")
grid on

%segunda función

h = t;
figure(2)
plot(t,h)
xlabel("t")
ylabel("y")
title("1")
grid on

%DIVISION de ambas funciones

g = y./h
figure(3)
plot(t,g)
xlabel("t")
ylabel("g")
title("DIVISION")
grid on
EJERCICIO H

%primera función

t=-2:0.01:2;
y = sin(pi*t);
figure(1)
plot(t,y)
xlabel("t")
ylabel("y")
title("1")
grid on

%segunda función

h = pi*t;
figure(2)
plot(t,h)
xlabel("t")
ylabel("y")
title("2")
grid on

%DIVISION de ambas funciones

g = y./h
figure(3)
plot(t,g)
xlabel("t")
ylabel("g")
title("DIVISION")
grid on
DIBUJE LAS DERIVADAS DE ESTAS SEÑALES

EJERCICIO A

FUNCION

function y = sinc(t)
zero = (t==0) ;
num = (-zero).*sin(pi*t) + zero ; den = (-zero) .* (pi*t) + zero ;
y = num./den ;
end

t=sym('t')
y=sinc(t)
dery=diff(y)
figure(1)
ezplot(y)
figure(2)
ezplot(dery)
grid on

FUNCION

function y = u(t)
y= heaviside(t)
end

t=sym('t')
y=(1-exp(-t)).*u(t)
dery=diff(y)
figure(1)
ezplot(y)
figure(2)
ezplot(dery)
grid on

Determine las partes par e impar de estas funciones

Ejercicio 1

t=sym("t");
g(t)= 2*t^2-3*t+6;
par=(g(t)+g(-t))./2
impar=(g(t)-g(-t))./2

par = 2*t^2 + 6

impar = -3*t

R// NO ES PAR NI IMPAR

Ejercicio 2

t=sym("t");
q(t)= (2*t^2-3*t+6)/(1+t);
par=(q(t)+q(-t))./2
impar=(q(t)-q(-t))./2

par = (2*t^2 - 3*t + 6)/(2*(t + 1)) - (2*t^2 + 3*t + 6)/(2*(t - 1))

impar = (2*t^2 + 3*t + 6)/(2*(t - 1)) + (2*t^2 - 3*t + 6)/(2*(t + 1))

R// NO ES PAR NI IMPAR

Ejercicio 3

t=sym("t");
h(t)= t*(2-t^2)*(1+4*t^2);
par=(h(t)+h(-t))./2
impar=(h(t)-h(-t))./2

par = 0

impar = -t*(t^2 - 2)*(4*t^2 + 1)

R// ES IMPAR
Ejercicio 4

t=sym("t");
r(t)= 20*cos(40*pi*t-(pi/4));
par=(r(t)+r(-t))./2
impar=(r(t)-r(-t))./2

par = 10*cos(pi/4 - 40*pi*t) + 10*cos(pi/4 + 40*pi*t)

impar = 10*cos(pi/4 - 40*pi*t) - 10*cos(pi/4 + 40*pi*t)

R// NO ES PAR NI IMPAR

Ejercicio 5

t=sym("t");
s(t)= sinc(t);
par=(s(t)+s(-t))./2
impar=(s(t)-s(-t))./2

par = sin(pi*t)/(t*pi)

impar = 0

R// ES PAR

Ejercicio 6

t=sym("t");
f(t)= t*(2-t)*(1+4*t)
par=(f(t)+f(-t))./2
impar=(f(t)-f(-t))./2

par = (t*(4*t - 1)*(t + 2))/2 - (t*(4*t + 1)*(t - 2))/2

impar = - (t*(4*t - 1)*(t + 2))/2 - (t*(4*t + 1)*(t - 2))/2

R// NO ES PAR NI IMPAR


Dibuje la integral

Ejercicio a

FUNCION
function y = efe5(t)
y1=0
y2=1
y3=-1/2
y= y1.*(t<=0)+ y2.*(t>=0 & t<=1) + y3.*(t>=1 & t<=2)
end

t=-2:0.001:4;
t=sym("t");
h=efe5(t)
inteh = int(h)
figure(7)
ezplot(inteh)
grid on

Ejercicio b

t= sym('t')
y= tri(t-1)
h= int(y)
figure(1)
ezplot(y)
figure(2)
ezplot(h)
Taller

Determine la energía de señal de estas señales

dt=0.1
t=-5:dt:5
x = 2*rect(t)
xsq= x.^2
Ex = trapz(t,xsq)

Solución: 3.8000

C
dt=0.1
t=-5:dt:5
x = u(t) - u(10-t)
xsq= x.^2
Ex = trapz(t,xsq)

Solución = 4.9750
E

dt=0.1
t=-5:dt:5
x = rect(t).*cos(4*pi*t)
xsq= x.^2
Ex = trapz(t,xsq)
Solución: 0.4500

syms A
dt=0.1
t=-5:dt:5
x = A*(u(t)-u(t-10))
xsq= x.^2
Ex = trapz(t,xsq)

SOLUCION : (199*A^2)/40

dt=0.1
t=-5:dt:5
x = rect(t).*cos(2*pi*t)
xsq= x.^2
Ex = trapz(t,xsq)

Solución: 0.4500

dt=0.1
t=-5:dt:5
x = rect(t).*sin(2*pi*t)
xsq= x.^2
Ex = trapz(t,xsq)

Solución: 0.5000

Determine la potencia de señal de estas señales


A

%EJERCICIO 1
syms t A To
g=A
limit((1/(2*To))*(int(g^2,-To,To)),To,inf)

RESPUESTA: Inf

%EJERCICIO 2
syms t A To
h=u(t)
limit((1/(2*To))*(int(h^2,-To,To)),To,inf)

RESPUESTA: ½

C
%EJERCICIO 3
syms t A To
h=u(t)
limit((1/(2*To))*(int(h^2,-To,To)),To,inf)

RESPUESTA: A^2/2

También podría gustarte