How to write convolution equation for sin?

How do i write the y3 for the convolution of x and h? i have the code set up already but im not sure how to write the y3
%second equation
figure
t= -2:delta:6;
x= sin(2*pi*t).*(u(t)-u(t-3));
h= u(t)-u(t-3);
y = delta*conv(x,h);
tt= -4 :delta:12;
plot(tt,y);
hold on
t = -4:0.1:12;
y3=
plot(t, y3, 'ro'); title('x(t)= sin(2*pi*t).*(u(t)-u(t-3))-> h= u(t)-u(t-3) );
legend('Approximation', 'Theoretical'); hold off

3 comentarios

Image Analyst
Image Analyst el 4 de Abr. de 2020
You said " y3 for the convolution of x and h" so isn't it just y3=conv(x, h)?
STUDENT
STUDENT el 4 de Abr. de 2020
yeah but what would be the theoretical convolition of them in u(t)
Nishant Gupta
Nishant Gupta el 7 de Abr. de 2020
You cannot generate a unit step function like what you are doing using u(t), its just a representation for unit step function.

Iniciar sesión para comentar.

Respuestas (0)

Productos

Versión

R2019a

Etiquetas

Preguntada:

el 3 de Abr. de 2020

Comentada:

el 7 de Abr. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by