hi, I am working with the matrix that is returned from the PriceVolumeDistribution
I extract the volume and price from the matrix using:
rows = MxGetSize( mxVolb, 0 );
volb = MxGetBlock( mxVolb, 0, rows - 1, 1, 1, True );
prcb = MxGetBlock( mxVolb, 0, rows - 1, 0, 0, True );
then I create a second matrix in wich I want to keep the price column (column 0 ) but store something else in column 1
so I create the matrix:
mxVolb_imb = Matrix( rows, 2, 0 );
then I want to put the price array back in column 0 of the newly created matrix. I use:
MxSetBlock( mxVolb_imb, 0, rows - 1, 0, 0, prcb );
but I get zeros. I know the prcb array is filled correctly because this works:
for( xx = 0; xx < rows - 1; xx++ )
{
mxVolb_imb[xx][0] = prcb[xx];
}
why does
MxSetBlock( mxVolb_imb, 0, rows - 1, 0, 0, prcb );
not work? Thanks