Problem with specifying sampling interval

1 view (last 30 days)
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?

Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!