In the sine wave source is the formula that links samples per period and sample time correct? It says: Samples per period = 2*pi / (Frequency * Sample time), but I believe it should be Samples per period = Sample time / Frequency.
조회 수: 12 (최근 30일)
이전 댓글 표시
See attached file
댓글 수: 1
Srikar
2021년 2월 18일
Hi do you think Samples per period = Sample time / Frequency will balance the units ? sample time is in sec and Frequency in hertz (hertz is 1/sec) in that case your equation will end up having samples as sec2. I think the Math equation is right.
답변 (1개)
David Goodmanson
2021년 2월 19일
Hello Ilaria,
I believe it is neither of those. Rather it is what is in the PNG with the 2pi crossed out:
samples/period = 1/(frequency*sample time)
since frequency = cycles/sec, period = sec/cycle =1/frequency
# samples = period/sample time = 1/(frequency*sample time)
댓글 수: 3
Daniele Ferretti
2022년 5월 29일
편집: Daniele Ferretti
2022년 5월 30일
So the correct formula probably is : frequency*sample time
units measure : [frequency] = Hz , [sample time] = Seconds
David Goodmanson
2022년 6월 6일
It's
number_of_ samples = 1/(sample_time * frequency) in which case
number_of_samples * sample_time = 1/frequency = period which is correct
참고 항목
카테고리
Help Center 및 File Exchange에서 Schedule Model Components에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!