How to convert a delta function to a vector

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.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 4월 6일

0 개 추천

Given a vector of t values,
h = (t == 0) + 0.5 * (t == 1);

카테고리

도움말 센터File Exchange에서 Dynamic System Models에 대해 자세히 알아보기

질문:

2017년 4월 6일

답변:

2017년 4월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by