Codes to plot fluid pathlines and streaklines given an example
5 views (last 30 days)
Show older comments
I am new to matlab. GIVEN say u=cos(t) and v=sin(t), How do I write a code to plot the pathlines and streaklines through the origin(0,0) for values of t=pi/2, pi, 3*pi/2 and 2*pi. These problems have already given me 3 days sleepless nights. I really don't have idea on how to start. Pls help.
0 Comments
Answers (2)
Image Analyst
on 1 Feb 2016
Do you mean like this:
t = 0 : pi/2 : 2*pi;
u=cos(t)
v=sin(t)
plot(t, u, 'r*-');
hold on
plot(t, v, 'bd-');
grid on;
legend('u', 'v');
1 Comment
krishna chaitanya
on 8 Sep 2016
using matlab and ODE45 solver, how to plot such kind of graph? in circular
See Also
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!