This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Generate Discrete Impulse with Three Channels

This example shows how to generate a discrete impulse signal with three channels and a data type of double. The Discrete Impulse block has the following settings:

  • Delay = [0 3 5]

  • Sample time = 0.25

  • Samples per frame = 4

  • Output data type = double

Run the model and look at the output, dsp_examples_yout. The first few samples of each channel are shown below:

dsp_examples_yout(1:10,:)
ans =
     1     0     0
     0     0     0
     0     0     0
     0     1     0
     0     0     0
     0     0     1
     0     0     0
     0     0     0
     0     0     0
     0     0     0

The block generates an impulse at sample 1 of channel 1 (first column), at sample 4 of channel 2 (second column), and at sample 6 of channel 3 (third column).

See Also

Blocks