How can I plot Streamline from a stream function?

99 次查看(过去 30 天)
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)

请先登录,再进行评论。

更多回答(1 个)

vishal
vishal 2025-4-15

U=Kx V=-Ky

类别

Help CenterFile Exchange 中查找有关 Vector Fields 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by