How can I get curvature of stream2?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi,MATLAB experts.
I want to get curvature of line drawn by stream2.
u and v are the velocity vectors in the x and y directions at 12,500 coordinates
I want to know the curvature of the streamline drawn by U and V at each coordinate.
[startx,starty]= meshgrid(-0.5:0.25:0.5,-0.25:0.01:0.25);
[m, n]=size(startx);
startx = reshape(startx,[1,m*n]);
starty = reshape(starty,[1,m*n]);
option= [0.1 50000];
streamline(X,Y,U,V,startx,starty, option)
hold on
streamline(X,Y,-U,-V,startx,starty, option)
plot(startx,starty,'Linestyle','none','Marker','.')
t=pi/100*(0:200);
hold off
댓글 수: 0
답변 (1개)
Yoshio
2019년 10월 11일
Seems your question is how to curculate curvature with (x,y) and (xdot, ydot), isn't it?
If so, you can find the many Q&A about curvature, not only for stream 2. It might be helpful for your question.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Vector Volume Data에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!