Chromatic dispersion and line width phase noise
[4yp.git] / chromaticDispersionTest.m
CommitLineData
1eeb62fb
AIL
1Rsym = 2.5e10; % symbol/sec
2sps = 4; % samples/symbol
3fs = Rsym * sps; % sampling freq (Hz)
4Tsamp = 1 / fs;
5
6x = 10 * normpdf(1:30, 10, 3);
7
8xCD = chromaticDispersion(x, 20, 1550, 30, Tsamp);
9
10figure(1);
11subplot(211);
12plot(abs(x) .^ 2);
13axis([0 30 -Inf Inf]);
14title('Before dispersion');
15ylabel('Power (arb. unit)');
16subplot(212);
17plot(abs(xCD) .^ 2)
18axis([20 50 -Inf Inf]);
19title('After dispersion');
20xlabel('Time (arb. unit)');
21ylabel('Power (arb. unit)');
22
23%saveas(gcf, 'dispersionTest.png');