How to configure stream3 arrays
이전 댓글 표시
I have a set of data and I am trying to understand how the function stream3 needs the data in order to produce an acurate plot. The data I have is in this form
x=[1,2,3]
y=[4,5,6]
z=[7,8,9]
velocity=[1,2,3;4,5,6;7,8,9]
so the first 3 values are the velocity when x=1, y=4, and z ranges from 7 trough 9, the second 3 values are when x=1, y=5 and z ranges from 7 through 9, the third set of values are when x=1, y=6 and z ranges from 7 through 9.
Im sure that this isnt the way the function needs the data so I was wondering if anyone out there know how the function requires the data in order to get an accurate streamline plot. Oh, and just as a sidenote, whoever has the answer, you frakin' ROCK!!!
댓글 수: 5
Sean de Wolski
2011년 5월 20일
By first three do you mean first row or first column?
Franco
2011년 5월 20일
Patrick Kalita
2011년 5월 20일
I don't think this is acceptable data for stream3. stream3 needs a velocity *vector* at each point in space. That is, each point [x, y, z] should correspond to a velocity vector [vx, vy, vz].
As far as I can tell, it appears that for each point [x, y, z] you have a scalar "velocity" value (i.e. [1, 4, 7] -> 1). That doesn't really provide enough information for stream3.
Franco
2011년 5월 20일
Matt Fig
2011년 5월 20일
Hello Franco,
I see you have asked 8 questions on MATLAB Answers without accepting a best answer for any of them. Would you take a few minutes to go back and resolve the questions to which you received satisfactory answers?
Thanks.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!