MATLAB Examples

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.

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 your country 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 location from the following list:

See all countries