Periodically repeating exponential function
이전 댓글 표시
Hi! I am trying to design a trapezoidal filter in Matlab by generating a periodically decaying exponential signal that we get from the pre-amplifier. Can someone help me with the code to generate this type of periodic signal?
채택된 답변
추가 답변 (1개)
Scott Sands
2018년 11월 10일
편집: madhan ravi
2018년 11월 10일
try using mod() rather than repmat for greater flexibility:
%setup:
Twave=50;
T=100;
Fs = 1;
dt = 1/Fs;
Time = (-T:dt:T-dt)';
tau=20;
%generate periodic exponential "v", scaled 0-1:
v = 1/(1-exp(-Twave/tau))*(1*exp(-mod(Time,Twave)/tau) - exp(-Twave/tau));
figure(1);
clf(1);
plot(Time,v);
카테고리
도움말 센터 및 File Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
