The Test Suite is not demonstrating removal of a DC component, as there is no way to identify the AC component in any of the tests! For example, Test 3 has x = 0:100, and from this we are supposed to obtain signalMean = 50. But without any observations to show that at earlier & later times the signal is decreasing with time, like x = [2 1 0:100 99 98], we have no way to know that more observations wouldn't have revealed, say, x = [2 1 0:100 101 102], for which signalMean = 51. And indeed we could get any arbitrary signalMean based on the limited observations in this Test Suite.
The DC component of a signal is usually its mean.
Remove all the words that end with "ain"
1305 Solvers
2197 Solvers
Project Euler: Problem 7, Nth prime
537 Solvers
Output any real number that is neither positive nor negative
319 Solvers
Find out sum of all elements of given Matrix
352 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!