what is the matlab code for ploting dispersion against wavelength (for chromatic dispersion)?
조회 수: 16 (최근 30일)
이전 댓글 표시
D=(-lamda*3*10^8)*(d^2(neff)/d(lamda)^2)
댓글 수: 2
채택된 답변
추가 답변 (1개)
Hiro Yoshino
2022년 12월 28일
Let me use SiO2 as an example.
data = readtable("SiO2.txt");
lambda = data.Wavelength_nm_;
n = data.n;
c = 3e8;
plot(lambda,n);
xlabel("\lambda (nm)");
Here is how to visualize D for you:
dn_dlambda = gradient(n,5); % 1st order
d2n_dlambda2 = gradient(dn_dlambda,5); % 2nd order
D = -lambda/c.*d2n_dlambda2; % your D
plot(lambda,D)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interpolation of 2-D Selections in 3-D Grids에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!