How to Plot Path lines
Show older comments
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.
Accepted Answer
More Answers (1)
Star Strider
on 16 Jun 2014
1 vote
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 Comments
Ceren GURKAN
on 16 Jun 2014
Ceren GURKAN
on 16 Jun 2014
Star Strider
on 16 Jun 2014
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
on 16 Jun 2014
Categories
Find more on Vector Fields 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!