How to convert 2D plot to 3D.
12 views (last 30 days)
Show older comments
I have a plot that gives me the following plot.
plot(field0(:,1), field0(:,2))
xlim([-0.1 0.02])
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/827250/image.jpeg)
Is it possible to convert this to 3D plot that will look something like this?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/827255/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/827255/image.jpeg)
6 Comments
Rik
on 8 Dec 2021
In that case you must first try to find the peak point and decide how exactly you want to rotate. Do you want to make it symetrical? The plot you showed isn't symetrical itself, so how should the code deal with that?
Accepted Answer
More Answers (1)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!