What is a sample period?

What is a sample period?

Sample Period. For Time-based calculations, the Sample Period is the time between samples within a sample group. For example, if the Calculation Period is 2 hours, the Sample Period is 10 minutes, and the Sample Size is 5, the sample groups would begin at midnight, 2:00, 4:00, and so on.

How do you convert samples to time?

The formula is simple:

  1. Milliseconds times the sample rate = # of samples.
  2. In the example, if the delay between a pair of room microphones and a soundboard feed in the record’s home studio is 17 milliseconds of delay (based 17 feet of distance), the formula becomes:
  3. 17 times 44.1 = 749.7 samples.

When do you need a sampling period for continuous time?

For example, if you known that the maximum frequency contributing to the spectrum of your continuous-time signal is 50 Hz, then you need a sampling period T_s <= 0.01 s.

How to determine the sampling period in MATLAB?

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

How to specify sample times in a model?

To specify and inspect block-based sample times throughout a model, consider using the Model Data Editor (on the Modeling tab, click Model Data Editor ). On the Inports/Outports, Signals, and Data Stores tabs, set the Change view drop-down list to Design and use the Sample Time column.

How to specify the sample time of a block?

Specify Block-Based Sample Times Programmatically. To set a block sample time programmatically, set its SampleTime parameter to the desired sample time using the set_param command. For example, to set the sample time of the Gain block in the Specify_Sample_Time model to inherited (-1), enter the following command: