Basics Signal Plot in Matlab
Basics Signal Plot in Matlab
141305012
Name:-Bhamare Kishor D.
Batch:-D
1) Program to Create Unit Impulse Signal in Matlab
clc;
clear all;
t=-20:0.01:20;
f=zeros(1,4001);
for i=1:4001;
if (t(i)==0)
f(i)=1;
else
f(i)=0;
end;
end;
plot(t,f);
f(i)=t(i);
end;
end;
plot(t,f);
axis([-20 20 -5 30]);
grid on;
ylebel('Magnitude');