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

  • Topic: MATLAB 
  • Thread starter Thread starter Az83
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 12K views
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
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