MATLAB Plot Streamlines in MATLAB for t=[1,5,10]s at (x0,y0)=(0,0)

  • Thread starter Thread starter Az83
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
To plot streamlines in MATLAB for the specified velocity field at times t = 1, 5, and 10 seconds, first create range vectors for x and y. Evaluate the velocity components u and v using the given equations, u = 5*t*y and v = 2*t^2*x^2. Utilize the 'quiver' command to visualize the vector field. Ensure to include the starting point (x0, y0) = (0, 0) in your plot. This approach will help effectively display the streamlines for the defined time intervals.
Az83
Messages
7
Reaction score
0
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?
 
Physics news on Phys.org
sorry, I can't understand your question...
 
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
 

Similar threads

Replies
4
Views
1K
Replies
8
Views
2K
Replies
5
Views
2K
Replies
1
Views
2K
Replies
18
Views
4K
Replies
1
Views
2K
Replies
2
Views
3K
Replies
2
Views
3K
Back
Top