what is the matlab code for ploting dispersion against wavelength (for chromatic dispersion)?

22 ビュー (過去 30 日間)
D=(-lamda*3*10^8)*(d^2(neff)/d(lamda)^2)
  2 件のコメント
Hiro Yoshino
Hiro Yoshino 2022 年 12 月 27 日
whad does "d" stand for? Is neff the refractive index?
Ahmed
Ahmed 2022 年 12 月 28 日
Yes neff the refractive index
The second derivative

サインインしてコメントする。

採用された回答

Star Strider
Star Strider 2022 年 12 月 28 日
Try this —
syms c lambda n_eff(lambda)
D_T = -(lambda/c) * diff(n_eff,2)
D_T(lambda) = 
.
  5 件のコメント
Star Strider
Star Strider 2022 年 12 月 29 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (1 件)

Hiro Yoshino
Hiro Yoshino 2022 年 12 月 28 日
You can use gradient to calculate this problem numerically.
Let me use SiO2 as an example.
data = readtable("SiO2.txt");
Warning: Column headers from the file were modified to make them valid MATLAB identifiers before creating variable names for the table. The original column headers are saved in the VariableDescriptions property.
Set 'VariableNamingRule' to 'preserve' to use the original column headers as table variable names.
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 ExchangeInterpolation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by