简体   繁体   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; y=conv(x,h) * tpas; // what does this line do? // 这行是做什么的? more specifically, why do i have the conv function times tpas value?更具体地说,为什么我有 conv function 乘以 tpas 值?

subplot(3,1,3);

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

axis();

grid;

I posted the whole code for context but really i just need to know what happens when i multiply the convolution value with tpas.我发布了上下文的整个代码,但实际上我只需要知道当我将卷积值与 tpas 相乘时会发生什么。

Your filter is h=1*exp(-f*t) , which is sampled at time values t=tstart:tpas:tstop您的过滤器是h=1*exp(-f*t) ,它在时间值t=tstart:tpas:tstop

The number of simples in your filter is (tstop-tstart)/tpas .过滤器中的简单数为(tstop-tstart)/tpas The integral (just the sum of those samples) is therefore proportional to 1/tpas .因此,积分(只是这些样本的总和)与1/tpas

The convolution will multiply your signal by this factor, so the result is multiplied by tpas to correct it.卷积会将你的信号乘以这个因子,所以结果乘以tpas来纠正它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM