How can I plot Streamline from a stream function?

52 vues (au cours des 30 derniers jours)
Alpha Boy
Alpha Boy le 1 Avr 2021
Commenté : vishal le 15 Avr 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.

Réponse acceptée

Cris LaPierre
Cris LaPierre le 2 Avr 2021
  10 commentaires
Alpha Boy
Alpha Boy le 2 Avr 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 le 2 Avr 2021
Thank you

Connectez-vous pour commenter.

Plus de réponses (1)

vishal
vishal le 15 Avr 2025

U=Kx V=-Ky

Catégories

En savoir plus sur Vector Fields dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by