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