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!