discrete simulations?

if I am running a discrete simulation @ 40kHz, should I still use the variable step solver or switch to a fixed point solver at the sampling frequency?

 Accepted Answer

Fangjun Jiang
Fangjun Jiang on 29 Sep 2011

0 votes

If you are simulating a discrete system, then use the discrete solver with a fixed time step.
If your system has a 40kHz signal, you can't use a time step that is 1/40k. You need to use a time step that is not larger than 1/40k/2.
Preferably, the time step should be smaller than 1/40k/10.

More Answers (0)

Categories

Find more on Configure Simulation Conditions 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!