필터 지우기
필터 지우기

How is the streamline function implemented?

조회 수: 2 (최근 30일)
巧云
巧云 2023년 12월 11일
댓글: 巧云 2023년 12월 13일
Having already read this, I'm still not quite satisfied. I can understand Euler's method, but that doesn't quite provide an answer as to how exactly MATLAB is able to produce streamlines. Would anyone happen to know exactly how it is implemented? Thanks in advance!

채택된 답변

Walter Roberson
Walter Roberson 2023년 12월 11일
streamlines() is implemented by calling stream2() or stream3() to figure out where the lines go. Then it just draws the lines.
You can build the vertex list ahead of time by calling stream2() or stream3() yourself, which will return a cell array of vertex information; streamlines() passed that cell array will just draw the lines.
The question then becomes how stream2() or stream3() are implemented. stream2() turns out to be implemented by calling stream3() .
stream3() starts by doing some interpolation that I do not yet understand the meaning of; then it calls the mex routine stream3c() to do the bulk of the work. The algorithm for stream3() does not appear to be documented.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by