How to draw streamline

조회 수: 6 (최근 30일)
Elham Mohammadi
Elham Mohammadi 2016년 3월 23일
댓글: Elham Mohammadi 2016년 3월 24일
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