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