Codes to plot fluid pathlines and streaklines given an example

5 visualizaciones (últimos 30 días)
Osasu
Osasu el 1 de Feb. de 2016
Comentada: krishna chaitanya el 8 de Sept. de 2016
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.

Respuestas (2)

Image Analyst
Image Analyst el 1 de Feb. de 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');

Chad Greene
Chad Greene el 8 de Sept. de 2016
I'm not sure what exactly you're asking. Do you mean you want something like streamline?

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by