Definte Integration of a Received Sequence
2 views (last 30 days)
Show older comments
Hello all,
I have the sequence v of length K-by-1. I want to do integration of v over nn*nsamp to (nn+1)*nsamp for nn=0, ..., N-1 and K=nsamp*N. I did this in MATLAB as following:
y=zeros(N,1);
for nn=0:N-1
y(nn)=sum(v(nn*nsamp:(n+1)*nsamp))
end
Is this right?
2 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!