Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Solve the Euler-Lagrange equation

5 ビュー (過去 30 日間)
tandemuse
tandemuse 2021 年 8 月 17 日
閉鎖済み: John D'Errico 2021 年 8 月 17 日
Using calculus of variations (optics subsection) we can show that the following Euler-Lagrange equation must be true:
with the boundary conditions and .
is a matrix of slowness values (inverse of velocity), so for every point in space we know the velocity values. Say for example this is the peaks function:
x = -2:0.05:2;
y = x';
[X,Y] = meshgrid(x,y);
s = peaks(X,Y);
imagesc(s)
xlabel('x')
ylabel('y')
represents the curve we're trying to find, which starts at the point and ends at the point (the boundary conditions).
Find by solving the Euler-Lagrange equation.

回答 (0 件)

この質問は閉じられています。

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by