How to draw streamline

5 Ansichten (letzte 30 Tage)
Elham Mohammadi
Elham Mohammadi am 23 Mär. 2016
Kommentiert: Elham Mohammadi am 24 Mär. 2016
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 Kommentar
Image Analyst
Image Analyst am 24 Mär. 2016
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

KSSV
KSSV am 23 Mär. 2016
Check quiver...
  3 Kommentare
KSSV
KSSV am 24 Mär. 2016
quiver works when size of X,Y,U,V are same.
Elham Mohammadi
Elham Mohammadi am 24 Mär. 2016
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Vector Fields finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by