How can I plot Streamline from a stream function?

조회 수: 44 (최근 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

카테고리

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