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');

Answers (0)

This question is closed.

Asked:

on 4 Dec 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!