Issues with streamline plot

5 ビュー (過去 30 日間)
Turbulence Analysis
Turbulence Analysis 2021 年 2 月 16 日
コメント済み: green_ananas 2021 年 2 月 16 日
Hi,
I am plotting velocity vectors and streamlines using the below code. I getting the proper velocity vectors, but not streamline (please see figure). Please somebody help me with this....
skip=2;
ff=quiver(x',y(1:skip:end),Um(1:skip:end,:),Vm(1:skip:end,:));
ff.Color='black';
ff.AutoScaleFactor=12;
set(gca, 'YDir','normal')
startx = -40:40;
starty = 0:80;
streamline(x,y,Um,Vm,startx,starty);
  1 件のコメント
green_ananas
green_ananas 2021 年 2 月 16 日
Where do you want your streamlines to originate? Right now, every line starts at a different y-coordinate, you might want to change starty to something uniform like starty = ones(size(startx)) and take a look at the example here.
Cheers

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeVolume Visualization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by