Converting 2D plots into a 3D plot
3 次查看(过去 30 天)
显示 更早的评论
I have total 4 arrays.
waterdepth = [] (10 values)
velocities = [] (corresponding to the 10 values of depths)
time=[] (10 values)
velocities = []=(corresponding to the 10 values of time)
I am able to plot two graphs seperately but I want to show how velocity is changing with both waterdepth and time in a single 3D plot.... How can I plot one?
2 个评论
回答(1 个)
Jyotsna Talluri
2020-4-23
As you have 3 vectors waterdepth,time and velocities, you can plot a 3D scatter plot by making use of scatter3 function.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Data Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!