ploting graph which includes sin and vectors

Hi how can i plot a graph of 't' against 'x' whet t= -2.5:0.25:2.5; y is a vector too represented by y=exp(-t.^2); and x is represented as the sum(x(n)*sin(t-n)/(t-n) when n goes from 0 to length of(t)
here is my code:
clear all close all t= -2.5:0.25:2.5; y=exp(-t.^2); x=0; for n=1:length(t) x=x+y(n)(sin(t-n))/(t-n); end x=0.25*x; plot(t,x) xlabel('t'); ylabel('x(t)'); title('GIMEL: Reconstructed Signal');

Réponses (0)

Cette question est clôturée.

Question posée :

le 4 Déc 2011

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by