How to configure stream3 arrays
Show older comments
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 Comments
Sean de Wolski
on 20 May 2011
By first three do you mean first row or first column?
Franco
on 20 May 2011
Patrick Kalita
on 20 May 2011
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
on 20 May 2011
Matt Fig
on 20 May 2011
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.
Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!