Fixed-step size: why doesn't the Nyquist-Shannon sampling theorem work?
Show older comments
Hello,
My problem concerns the choice of fixed-step size (Model Settings > Solver details).
I have a sinusoidal signal of amplitude 3 and frequency 5Hz.


According to Shanon's theorem, I should choose a fixed-step size of 5Hz*2 = 10Hz. So I assigned 0.1 to fixed-step size. I chose "auto" solver.

But as you can see, I get a flat curve:

I have a much more better curve if I choose, for example, 0.01 as fixed-step size:

Thank you in advance for your help. I've been struggling this problem for a few hours now.
Accepted Answer
More Answers (0)
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!