필터 지우기
필터 지우기

Difference between decimation and sample time

조회 수: 25 (최근 30일)
Edwin Fonkwe
Edwin Fonkwe 2012년 1월 24일
Hi all,
What's the difference between decimation and sample time in the scope of Simulink? And how do I determine which option to use under what circumstance?
Thanks edwin.

채택된 답변

Guy Rouleau
Guy Rouleau 2012년 1월 25일
Decimation: The scope will show only 1 point every X time steps. Whatever the rate of the input signal, with a decimation of 5, the scope will show you 1 point every 5 time steps.
Sample: You want a fixed rate. one point every 0.001sec or 1 point every 0.2 sec. In that case, even if the solver would not need to take a step at that time, it will take one to generate that point.
As you can guess, the difference is especially important if you use a variable sample time solver.
  댓글 수: 1
Edwin Fonkwe
Edwin Fonkwe 2012년 1월 25일
Hi Guy. Thanks for this explanation. In my experience, the sample time gives me more accurate results with a value of 1e-7 than the decimation. With switching circuits, sometimes the difference is very very glaring. However, sample time slows down the simulation too.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by