stream2 vertex
이전 댓글 표시
Hello, I'm using streamline to plot a 2d vector field. I specify the starting points [XS,YS]=meshgrid(xs,ys) and the plot is done correctly. Now I'd like to obtain the endpoint of some stramlines that are displayed. I suppose that you can do that with XY=stream2(X,Y,u,v,XS,YS); but i don't understand how data are stored in the cell array. Any help would be greatly appreciated. Thanks
답변 (1개)
Andrew Newell
2011년 5월 18일
Each element of XY is a matrix containing the coordinates of one streamline in the form [xcoords ycoords], where xcoords and ycoords are column vectors. To access the endpoint of the ith streamline, type:
xend = XY{i}(end,1);
yend = XY{i}(end,2);
카테고리
도움말 센터 및 File Exchange에서 Vector Volume Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!