The method CopyColToVec copies part of a column of the matrix into the vector DestVec. The parameter Col specifies the column to be copied, the parameters FirstRow, and LastRow define the range of the column to be copied to the vector. The matrix element with address [ColFirstRow ] is copied to the first element of the vector, the element [ColFirstRow+1 ] is copied to the second vector element, and so on, until the cell at [ColLastRow ] has been copied.

If the destination vector is larger than the specified range, the remaining cells are set to zero values. If the vector is smaller, only the first n elements (n = size of the vector) are copied.

Hint:

Setting both FirstRow and LastRow to zero values forces the method to use all rows.