How to convert a 1D solution to 2D using spherical axis symmetry
11 ビュー (過去 30 日間)
古いコメントを表示
Consider a 1D problem of the nature y =f(x). Now I want to get the solution in 2D using spherical symmetry. After getting the solution not evaluating. The attached file is a trial of my aim. But I got translational instead of rotational.
THE 1D PROFILE
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148999/image.jpeg)
THE 2D PROFILE I WANT
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149001/image.jpeg)
THE 2D PROFILE I GOT
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149003/image.jpeg)
0 件のコメント
採用された回答
その他の回答 (1 件)
pfb
2015 年 4 月 13 日
This is not very clear. What do you mean by "the solution of a 1D problem of the nature y=f(x)"?
It seems to me you're plotting curves and surfaces. From a quick look at you code, you're trying to plot a 2D Gaussian. But I'm not sure, because your second plot seems like you already made it.
Anyway, if your problem really is a 2D Gaussian, an easy way is to create a matrix of the radial coordinates.
Take a look at the documentation of meshgrid. That should give you enough inspiration to solve your problem.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Eigenvalue Problems についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!