How do I compute a moving average on a vector based signal using embedded MATLAB function in a way similar to the Digital FIR filter?
Show older comments
I would like to perform the following operations using Embedded MATLAB function blocks.
1. I have a vector based signal and I would like to calculate the moving average in a way similar to the digital filter block using embedded MATLAB function.
2. I have a vector based signal and I want to compute an average over every N samples and output it at every Nth sample time.
In either cases, how do I remember previous values (history) of signals from within the embedded MATLAB function?
Accepted Answer
More Answers (0)
Categories
Find more on Statistics and Linear Algebra in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!