Codes to plot fluid pathlines and streaklines given an example
조회 수: 5 (최근 30일)
이전 댓글 표시
I am new to matlab. GIVEN say u=cos(t) and v=sin(t), How do I write a code to plot the pathlines and streaklines through the origin(0,0) for values of t=pi/2, pi, 3*pi/2 and 2*pi. These problems have already given me 3 days sleepless nights. I really don't have idea on how to start. Pls help.
댓글 수: 0
답변 (2개)
Image Analyst
2016년 2월 1일
Do you mean like this:
t = 0 : pi/2 : 2*pi;
u=cos(t)
v=sin(t)
plot(t, u, 'r*-');
hold on
plot(t, v, 'bd-');
grid on;
legend('u', 'v');
댓글 수: 1
krishna chaitanya
2016년 9월 8일
using matlab and ODE45 solver, how to plot such kind of graph? in circular
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!