blob: b5e0b2f63b13a8e2c552e972cc603e81aa34d3a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//example 1.6<a>
//draw the waveform of the signal x1(t)=u(t+2)
clc ;
clear all;
t=-10:.001:10;
for i=1:length(t)
if t(i)>=-2 then
x(i)=1;
else
x(i)=0;
end
end
plot2d(t,x);
xtitle('Required figure','t','x(t)')
|