PLEASE how to implement sigma in matlab
이전 댓글 표시

there are two input signals x1[nT] and x2[nT] given, and sample spacing is given as T=0.1. i'm struggling to code x2[nT].
t = -0.7:0.7;
T = 0.1;
n = -0.7/T:0.7/T; % discrete-time values (from t=nT)
x1=tan(pi*n/3)+2*exp(-0.8*abs(n));
k=-7:1:n;
s=0.2.^abs(k);
S=sum(s);
x2=0.6.^abs(n)+S;
when i implement stem(n*T, x2), the graph shows wrong as the value k stops at -7 and doesn't move on. how can i fix this code? Thanks
댓글 수: 2
Walter Roberson
2018년 4월 29일
Please do not close questions that have an answer.
Rena Berman
2018년 5월 15일
(Answers Dev) Restored edit
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Undirected Graphs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!