Main Content

Compute the Running Standard Deviation

Compute the running standard deviation of a 3-by-2 matrix input, dsp_examples_u, using the Standard Deviation block.

Open the model.

model = 'ex_runningstandarddeviation_ref';
open_system(model)

The Input processing parameter is set to Columns as channels (frame based). The block processes the input as a two-channel signal with a frame size of three. The running standard deviation is reset at t = 2 by an impulse to the block's Rst port.

Run the model.

sim(model)

In the Running mode, the block outputs the standard deviation value over each channel since the last reset. At t = 2, the reset event occurs.

Close the model.

close_system(model)

See Also

Blocks

Related Topics