How can I plot Streamline from a stream function?

41 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Cris LaPierre
Cris LaPierre il 2 Apr 2021
  10 Commenti
Alpha Boy
Alpha Boy il 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)

Accedi per commentare.

Più risposte (1)

vishal
vishal il 15 Apr 2025

U=Kx V=-Ky

Categorie

Scopri di più su Vector Fields in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by