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
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
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
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
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 ExchangeSchedule Model Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by