Hi,
Sorry that I can not reproduce the error you mentioned with the following code. The code works fine.
void testMatrix()
{
matrix MAT(201,4);
for(int iCol=0; iCol<MAT.GetNumCols(); iCol++)
{
for(int iRow=0; iRow<MAT.GetNumRows(); iRow++)
{
MAT[iRow][iCol] = iRow*iCol;
printf("MAT[%d][%d] = %f\n", iRow, iCol, MAT[iRow][iCol]);
}
}
}
It will be better to get your entire code to make sure what the problem is.
Penn