MATLAB Answers

# 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.

11 views (last 30 days)
Ilaria Salutari on 31 Jul 2016
Answered: David Goodmanson on 19 Feb 2021
See attached file
##### 1 CommentShowHide None
Srikar on 18 Feb 2021
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.

Sign in to comment.

### Answers (1)

David Goodmanson on 19 Feb 2021
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)
##### 0 CommentsShowHide -1 older comments

Sign in to comment.

### Community Treasure Hunt

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

Start Hunting!