blob: 4a8b9d889e8dcc69349628ce0819c82656302bb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc ;
clear all;
t=-10:.001:10;
for i=1:length(t)
if t(i)<=-1/2 then
x(i)=1;
else
x(i)=0;
end
end
// f i g u r e
f=scf(0);
plot2d(t,x);
xtitle('Required figure','t','x(t)')
|