How are stored the vector fields in Matlab?
A vector field loaded with v = loadvec(‘B00001.vec’); is stored into a Matlab “structure” v. A Matlab structure is a variable that contains several variables of different types (see ‘Data Types > Structures’ in the Matlab help). The structure v contains the axis, the velocity components, the field names, and many attributes saved by Davis (acquisition time, etc). For instance, the x-component of the velocity field is stored in the matrix vx of the structure v. In order to refer (eg, plot, display, modify…) to the x-component of the velocity at the point (i,j), you should type v.vx(i,j) If you have loaded several fields in a single structure v, eg with v = loadvec(‘*.vec’); then v is now a “structure array”. You can refer to the (i,j) point of the x-component of the n-th vector field with v(n).vx(i,j) See loadvec for a full description of what is in the structure v.