Codes to plot fluid pathlines and streaklines given an example

6 ビュー (過去 30 日間)
Osasu
Osasu 2016 年 2 月 1 日
コメント済み: krishna chaitanya 2016 年 9 月 8 日
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
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
krishna chaitanya 2016 年 9 月 8 日
using matlab and ODE45 solver, how to plot such kind of graph? in circular

サインインしてコメントする。


Chad Greene
Chad Greene 2016 年 9 月 8 日
I'm not sure what exactly you're asking. Do you mean you want something like streamline?
  1 件のコメント
krishna chaitanya
krishna chaitanya 2016 年 9 月 8 日
did you check the image file, that i have attached?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by