Meshgrid compatible streamline data transformation for vector data?

4 views (last 30 days)
I have an array of vector data called fieldvalue(x,y,z,v) where x,y,z are spatial coordinates from 1 to 321 and v ranges from 1 to 3, holding vector data.
For example,
fieldvalue(1,1,1,1) is the value along I_hat for coordinates 1,1,1 fieldvalue(1,1,1,2) is the value along J_hat for coordinates 1,1,1 fieldvalue(1,1,1,3) is the value along K_hat for coordinates 1,1,1
Thus the vector field triplet values for location 1,1,1 is [fieldvalue(1,1,1,1),fieldvalue(1,1,1,2),fieldvalue(1,1,1,3)]
Silly question, how do I format this data for plotting streamlines?
I keep getting an non-meshgrid compatible error message no matter how I pull the vector data from my array.
Is there an easy way for me to convert my array vector data to something matlab likes?

Answers (0)

Community Treasure Hunt

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

Start Hunting!