__Answers:__

Here's the code

function y=diracdelta(d)

y=0;

if d==0 then

y=1

end

endfunction

d=-2:2;

for i=1:length(d)

f(i)=diracdelta(d(i));

end

plot2d3(d,f)

xlabel('n')

ylabel('Dirac Delta')

The code was taken from here- http://www.equalis.com/blogpost/731635/139333/Impulse-function--Dirac-Delta-in-scilab

function y=diracdelta(d)

y=0;

if d==0 then

y=1

end

endfunction

d=-2:2;

for i=1:length(d)

f(i)=diracdelta(d(i));

end

plot2d3(d,f)

xlabel('n')

ylabel('Dirac Delta')

The code was taken from here- http://www.equalis.com/blogpost/731635/139333/Impulse-function--Dirac-Delta-in-scilab

21-02-16, 9:55 p.m.6090131-03-19, 4:14 p.m.niharranjannayakLogin to add comment