what is the matlab code for ploting dispersion against wavelength (for chromatic dispersion)?
20 次查看(过去 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!