Hello,
What command are you using to get the size of a two-dimensional array? Size or length? The length command will return the number of rows or the number of columns of a matrix, whichever is larger. This might explain your first problem. If you use the size command, it will return a vector. The first element is the number of columns and the second element is the number of rows. For more information about using either of these commands, you can type
help size
help lengthin the MathScript Window.
If you create a row vector by indexing a row of the matrix, you should be able to use either size or length to determine the size of the vector. Can you provide some sample code that exhibits the difficulty you see in computing the size?
Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments