How to convert a delta function to a vector

3 visualizzazioni (ultimi 30 giorni)
shu liu
shu liu il 6 Apr 2017
Risposto: Walter Roberson il 6 Apr 2017
I have a delta function
h = dirac(t)+ 0.5*dirac(t-1)
I want to convert it to a vector. I tried zeros and ones, but doesn't help.

Risposte (1)

Walter Roberson
Walter Roberson il 6 Apr 2017
Given a vector of t values,
h = (t == 0) + 0.5 * (t == 1);

Categorie

Scopri di più su Dynamic System Models in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by