Plotting streamlines in an unsteady flow given vector field equation
5 ビュー (過去 30 日間)
古いコメントを表示
How do i input the y equation into matlab to plot the stream lines on the vector field?
am I doing the correct way or is there another way of doing this, thanks for the help
The first picture shows the velocity fileld equaiton and the second picture shows the matlab codes to get the graphs.
0 件のコメント
採用された回答
Sam Chak
2022 年 4 月 20 日
@Kiat Tsen Lim
Since it involves the time dimension, I think you will need to use the quiver3() function.
3 件のコメント
Sam Chak
2022 年 4 月 21 日
Because I thought you want to plot for .
Since t = 0, then you may be looking for this:
[X, Y] = meshgrid(0:10/14:10, -1:11/14:10);
U = 0.4 + 0.9*X;
V = 1.2 - 0.7*Y;
quiver(X, Y, U, V, 1.5)
axis square
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Vector Fields についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!