How can I plot Streamline from a stream function?

43 ビュー (過去 30 日間)
Alpha Boy
Alpha Boy 2021 年 4 月 1 日
コメント済み: vishal 2025 年 4 月 15 日
Hello,
I have a stream function psi = 1.2X^2 + y^2. I have to plot streamline. How can I plot it by using MATLAB?
Thank you.

採用された回答

Cris LaPierre
Cris LaPierre 2021 年 4 月 2 日
  10 件のコメント
Alpha Boy
Alpha Boy 2021 年 4 月 2 日
[x,y] = meshgrid(-3:.5:3,-3:.5:3);
u = x;
v = -y;
figure
startx = -3:0.5:3;
starty = ones(size(startx));
streamline(x,y,u,v,startx,starty)
Alpha Boy
Alpha Boy 2021 年 4 月 2 日
Thank you

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

その他の回答 (1 件)

vishal
vishal 2025 年 4 月 15 日

U=Kx V=-Ky

  1 件のコメント
vishal
vishal 2025 年 4 月 15 日

Plot streamlines

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

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by