Codes to plot fluid pathlines and streaklines given an example
显示 更早的评论
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.
回答(2 个)
Image Analyst
2016-2-1
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 个评论
krishna chaitanya
2016-9-8
using matlab and ODE45 solver, how to plot such kind of graph? in circular
Chad Greene
2016-9-8
0 个投票
1 个评论
krishna chaitanya
2016-9-8
did you check the image file, that i have attached?
类别
在 帮助中心 和 File Exchange 中查找有关 Fluid Dynamics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!