22 lines
308 B
Matlab
22 lines
308 B
Matlab
figure;
|
|
t = 0:0.001:1
|
|
y = sin(2*pi*1*t)
|
|
plot(t,y,'b')
|
|
hold on
|
|
y = sin(2*pi*1*(t-0.1))
|
|
plot(t,y,'r')
|
|
y = sin(2*pi*1*t-2*pi*0.1)
|
|
plot(t,y,'g:')
|
|
|
|
|
|
|
|
figure;
|
|
t = 0:0.001:1
|
|
y = sin(2*pi*3*t)
|
|
plot(t,y,'b')
|
|
hold on
|
|
y = sin(2*pi*3*(t-0.1))
|
|
plot(t,y,'r')
|
|
y = sin(2*pi*3*t-2*pi*0.3)
|
|
plot(t,y,'g:')
|