Meshgrid compatible streamline data transformation for vector data?

조회 수: 8 (최근 30일)
Michael Snyder
Michael Snyder 2015년 12월 2일
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?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Vector Volume Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by