Input x is the sampled signal vector, may have both AC and DC components. Output y should not contain any DC component.
Input x = [ 1 2 3 2 1 2 3]
Output y = [ -1 0 1 0 -1 0 1]
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.
Sums with Excluded Digits
Make an awesome ramp for a tiny motorcycle stuntman
Generate a string like abbcccddddeeeee
02 - Vector Variables 5
Find the 9's Complement
pressure to dB?
radius of a spherical planet
A Simple Tide Gauge with MATLAB
Simple spirometer - find your lung capacity from the number and size of soap bubbles in one breath
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office