sliding window for a sampled signal
Ältere Kommentare anzeigen
I sampled a continuous signal by using rate transition block in Simulink. now, How can I calculate the maximum absolute value of previous i.e. 100 samples for each input sample. is there any simulink block? or should I use any digital filter and how?
1 Kommentar
Walter Roberson
am 19 Okt. 2018
Please do not close Question that have an Answer.
Antworten (2)
Rik
am 5 Jul. 2017
When you have the signal as a vector, you can use movmean to find the moving average. You can modify the window to only include the previous 99 values to get a 100 value wide window.
M = movmean(A,[99 0]);
Walter Roberson
am 9 Jul. 2017
0 Stimmen
Kategorien
Mehr zu Measurements and Statistics finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!