what is the matlab code for ploting dispersion against wavelength (for chromatic dispersion)?
20 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
D=(-lamda*3*10^8)*(d^2(neff)/d(lamda)^2)
2 Commenti
Risposta accettata
Più risposte (1)
Hiro Yoshino
il 28 Dic 2022
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)
Vedere anche
Categorie
Scopri di più su Interpolation of 2-D Selections in 3-D Grids in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!