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');
0 个评论
回答(0 个)
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!