How to plot in 2D this equation?
4 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1361733/image.png)
I have an equation and need to plot this like
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1361738/image.png)
3 件のコメント
Dyuman Joshi
2023 年 4 月 20 日
I think 'r' is not supposed to be a constant in the definition of E and in the function handle, f. Can you clarify this?
採用された回答
KSSV
2023 年 4 月 20 日
x0 = linspace(-5,5,200);
y0 = x0;
n=10;a=0.1;
w0=0.01;m=0;
[x0,y0] = meshgrid(x0,y0) ;
r=(sqrt(x0.^2 +y0.^2));
f = @(x0,y0) ((sinh(r./w0)).^n).*exp(-(r.^2/w0^2)).*((x0+1i.*y0).^m);
surf(x0,y0,abs(f(x0,y0)))
shading interp
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!