How to draw streamline

4 次查看(过去 30 天)
Hi, I have x and y data and u and v which are velocity components in a matrix. I want to draw streamlines. but matlab returns u and v must be at least 2*2 matrices. It does sense just when we have them as a function not as vectors. How can I draw streamlines in this condition? Thanks, Regards, Elham Mohammadi
  1 个评论
Image Analyst
Image Analyst 2016-3-24
Is there a plot in the gallery you'd like to recreate? http://www.mathworks.com/products/matlab/plot-gallery.html Or one from the help from stream()? Please supply some data and the code that you have tried.

请先登录,再进行评论。

采纳的回答

KSSV
KSSV 2016-3-23
Check quiver...
  3 个评论
KSSV
KSSV 2016-3-24
quiver works when size of X,Y,U,V are same.
Elham Mohammadi
Elham Mohammadi 2016-3-24
Thanks for the comment. quiver is now working. I also have the same issue with contour. for a X and Y vector I want to plot a parameter called SWS. The length of X and Y and SWS are m.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Vector Fields 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by