簡體   English   中英

為什么我必須將卷積值乘以 tpas?

[英]Why do i have to multiply the convolution value times tpas?

tstart=0;

tstop=0.1;

tpas=0.0001;
   
f=100;

t=tstart:tpas:tstop;

x=0+10*t;

subplot(3,1,1);

plot(t,x,'linewidth',2);

axis([0 0.1001 0 1]);grid;

h=1*exp(-f*t);

subplot(3,1,2);

plot(t,h,'linewidth',2);

axis([0 0.1001 0 1]);

grid;

t2=2*tstart:tpas:2*tstop;

y=conv(x,h) * tpas; // 這行是做什么的? 更具體地說,為什么我有 conv function 乘以 tpas 值?

subplot(3,1,3);

plot(t2,y,'r','linewidth',2);

axis();

grid;

我發布了上下文的整個代碼,但實際上我只需要知道當我將卷積值與 tpas 相乘時會發生什么。

您的過濾器是h=1*exp(-f*t) ,它在時間值t=tstart:tpas:tstop

過濾器中的簡單數為(tstop-tstart)/tpas 因此,積分(只是這些樣本的總和)與1/tpas

卷積會將你的信號乘以這個因子,所以結果乘以tpas來糾正它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM