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 日

0 投票

Check quiver...

3 件のコメント

Elham Mohammadi
Elham Mohammadi 2016 年 3 月 24 日
I have checked quiver as well. My issue is that the size of U and V is the same as X and Y. But it needs to have a matrix [m,n] = size(U) = size(V), which m and n are X and Y lenght.
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 件)

カテゴリ

ヘルプ センター および File ExchangeVector Fields についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by