How can i plot this equation using surface plot in Matlab?
2 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
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
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!