フィルターのクリア

How can i plot this equation using surface plot in Matlab?

2 ビュー (過去 30 日間)
Ali Moosazadeh
Ali Moosazadeh 2024 年 2 月 13 日
コメント済み: Voss 2024 年 2 月 18 日
I want to plot the equation in attached picture. I will be appreciated if anybody help me . Coefficients are W=0.34*10^-3 Lambda=0.15*10^-6 t=400*10^-9 j0=1

採用された回答

Voss
Voss 2024 年 2 月 13 日
W=0.34e-3;
Lambda=0.15e-6;
t=400e-9;
j0=1;
x = linspace(-W/2,W/2,100);
jxy = NaN(1,numel(x));
idx = abs(x) < W/2-Lambda^2/t;
jxy(idx) = j0./sqrt(1-(2*x(idx)/W).^2);
jxy(~idx) = j0*sqrt(W*t)/(2*Lambda);
NY = 100; % Note: the choice of y is arbitrary, as j(x,y) does not depend on y
surf(x,1:NY,jxy(ones(1,NY),:),'EdgeColor','none')
colorbar
  2 件のコメント
Ali Moosazadeh
Ali Moosazadeh 2024 年 2 月 18 日
Thanks
Voss
Voss 2024 年 2 月 18 日
You're welcome!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by