how to determine the sampling period ?

hello guys, I have this question in my assignment. it is so easy but I just don't understand how to do it.
"The two variables loaded into the workspace are muxSignal and fs. The raw data stream of the music signals is stored in muxSignal while fs contains the sampling frequency. Determine the sampling period, store it inside the variable Ts and then use this to construct a time domain vector, t, that corresponds to muxSignal. Plot muxSignal against this time vector."

Answers (1)

Sampling frequency is in cycles per second. How would you get from that to seconds per cycle?

2 Comments

the variable fs just have a single number. is that the sampling period ?
Fs is the sampling frequency. Sampling frequency is always in samples per second, and is a scalar. How would you convert samples per second into seconds per sample?
Once you have figured that out, see http://www.mathworks.com/help/matlab/ref/colon.html

Sign in to comment.

Categories

Find more on Audio Processing Algorithm Design in Help Center and File Exchange

Asked:

on 15 Sep 2016

Commented:

on 15 Sep 2016

Community Treasure Hunt

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

Start Hunting!