MATLAB Examples

Perform statistical measurements on an input data stream using DSP System Toolbox™ functionality available at the MATLAB® command line. You will compute the signal statistics minimum,

Create a dsp.MovingAverage System object? to compute the 10-point moving average of the streaming signal. Use a dsp.MatFileReader System object to read data from the accelerometer MAT

Compare the frequency response of the moving average filter with that of the regular FIR filter. Set the coefficients of the regular FIR filter as a sequence of scaled 1's. The scaling factor

Compute the energy of a signal from the signal's RMS value and compares the energy value with a specified threshold. Detect the event when the signal energy is above the threshold.

Compute the moving average of a signal using the movmean function.

Measures the pulse and transition metrics of a noisy rectangular pulse. Pulse metrics include rise time, fall time, pulse width, and pulse period. Transition metrics include middle-cross

The bin boundaries created by the Histogram block are determined by the data type of the input. The following two models show the differences in the output of the Histogram block based on the

Compute the running mean of a 3-by-2 matrix input, dsp_examples_u, using the Mean block.

Compute the running minimum of a 3-by-2 matrix input, dsp_examples_u, using the Minimum block.

Explores different outlier removal filters and uses an electrocardiogram (ECG) signal as input.

Compute the maximum of a 3-by-2 matrix input, dsp_examples_u, using the Maximum block.

Compute the running maximum of a 3-by-2 matrix input, dsp_examples_u, using the Maximum block.

Compute the mean of a 3-by-2 matrix input, dsp_examples_u, using the Mean block.

Compute the minimum of a 3-by-2 matrix input, dsp_examples_u, using the Minimum block.

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list:

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Contact your local office