Hi Stefan,
Here is an alternative method that doesn't involve destroying and recreating the Results matrix...
void matrix_copy(string sMatName)
{
Matrix m1(sMatName);
if( !m1 )
return;
uint nCols = m1.GetNumCols();
uint nRows = m1.GetNumRows();
MatrixPage mp("Results");
if( !mp )
{
mp.Create("Origin.otm");
mp.Rename("Results");
}
Matrix m2("Results");
m2.SetSize(nRows,nCols);
m2 = m1;
}
Mike Buess
Origin WebRing Member
Edited by - Mike Buess on 01/19/2005 3:59:24 PM