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 Comments

By first three do you mean first row or first column?
i mean the values in the first row
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.
well, what i gave was just an example, i have the velocity components in u, v and w, but they are all in the same format as described above.
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.

Sign in to comment.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Tags

Asked:

on 20 May 2011

Community Treasure Hunt

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

Start Hunting!