Streamlines in MATLAB

  • MATLAB
  • Thread starter Az83
  • Start date
  • #1
8
0

Main Question or Discussion Point

I'm not sure how to do this... I have the following velocity field:

t = [1,5,10] % in seconds
u=5*t*y
v=2*t^2*x^2

How do I plot in MATLAB the streamlines going through (x0,y0) = (0,0) at t = 1,5, and 10 s?
 

Answers and Replies

  • #2
zyh
135
0
sorry, I can't understand your question...
 
  • #3
to start, create range vectors for x y and t, and evaluate your u and v into two more vectors

look into the quiver command in help as well
 

Related Threads for: Streamlines in MATLAB

Replies
3
Views
2K
  • Last Post
Replies
0
Views
650
Replies
1
Views
6K
  • Last Post
Replies
7
Views
764
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
3
Views
7K
  • Last Post
Replies
4
Views
3K
  • Last Post
Replies
2
Views
3K
Top