Borrar filtros
Borrar filtros

help with display delta function

2 visualizaciones (últimos 30 días)
Or Dahan
Or Dahan el 6 de Nov. de 2021
Respondida: Hassaan Saeed el 8 de Nov. de 2021
hi i have problm write this function in mathlab code and plot in anyone can help me ploting this function from -10 :1:10
for example?

Respuestas (1)

Hassaan Saeed
Hassaan Saeed el 8 de Nov. de 2021
You can create a delta function using this
function y = delta(n)
y = n == 0;
end
Then a for loop can be used to evaluate the summation, like
sum = 0;
for k = -1000:1000
temp = delta(n-4*k)-delta(n-1-4*k);
sum = sum+temp;
end

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by