Problem with specifying sampling interval

조회 수: 1 (최근 30일)
Hamid Radmard Rahmani
Hamid Radmard Rahmani 2019년 3월 22일
편집: Hamid Radmard Rahmani 2019년 3월 22일
in Discrete RMS unit in simulink:
When I specify 1 (as defult) for sampling intervals: the output has 61 data.
When I specify -1, then the output has 6001 data but most of outputs have NEGATIVE sign! (In theory, it is impossible that RMSfunction result in negative value!)
The time of simulation is 60 sec. with 0.01 sampling time. so notmally we have 6001 data.
Why sampling interval = 1 results in having one sample per sec. although it is descrete and it shall out all the input signal.
How to solve that?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by