How to Plot Path lines
显示 更早的评论
Hi everybody,
I have my coordinate data -X and Y vectors- and my velocity vectors U and V all being the same size. I would like to plot path lines of my fluid particles which are flowing through a porous medium. With these 4 known vectors any suggestions on how to do that??
Thanks in advance.
采纳的回答
更多回答(1 个)
Star Strider
2014-6-16
1 个投票
I do not know exactly what you want to do, however at least one of the Vector Fields plotting functions will likely do what you want.
4 个评论
Ceren GURKAN
2014-6-16
Ceren GURKAN
2014-6-16
Star Strider
2014-6-16
The unique function does not work well with floating point data because of inherent floating-point approximation error. I suggest you not use it with those data.
The contour and surf plots (with quiver3 may also do what you want, but since I don’t know your data, I can only suggest you experiment with them until you get the result you want.
The only other options I can think of are plot and plot3. They are relatively simple, but they may work in your applicataion. (You may have to segment your data to use the line plots.)
Ceren GURKAN
2014-6-16
类别
在 帮助中心 和 File Exchange 中查找有关 Vector Fields 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
