what is the matlab code for ploting dispersion against wavelength (for chromatic dispersion)?
Afficher commentaires plus anciens
D=(-lamda*3*10^8)*(d^2(neff)/d(lamda)^2)
2 commentaires
Hiro Yoshino
le 27 Déc 2022
whad does "d" stand for? Is neff the refractive index?
Ahmed
le 28 Déc 2022
Réponse acceptée
Plus de réponses (1)
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)
1 commentaire
Ahmed
le 29 Déc 2022
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




