How can I plot Streamline from a stream function?

36 Ansichten (letzte 30 Tage)
Alpha Boy
Alpha Boy am 1 Apr. 2021
Kommentiert: vishal am 15 Apr. 2025
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.

Akzeptierte Antwort

Cris LaPierre
Cris LaPierre am 2 Apr. 2021
  10 Kommentare
Alpha Boy
Alpha Boy am 2 Apr. 2021
[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 am 2 Apr. 2021
Thank you

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

vishal
vishal am 15 Apr. 2025

U=Kx V=-Ky

Kategorien

Mehr zu Vector Fields finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by