how to write delta function like this?

8 visualizaciones (últimos 30 días)
Kuheli Mondal
Kuheli Mondal el 31 de Mzo. de 2016
Comentada: Ced el 31 de Mzo. de 2016
h(n)=delta(n-3)-2*delta(n-4); delta(n==0)=1 can any one help me. Thank you.
  1 comentario
Ced
Ced el 31 de Mzo. de 2016
The delta function in this case is defined as
"if n is equal to 0, then the function value is 1, else, the function value is 0"
You can implement it just like that in matlab.

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 31 de Mzo. de 2016
delta = (n==0);

Categorías

Más información sobre Parallel for-Loops (parfor) en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by