diff --git a/src/c/Mex/MexInitVolume.cpp b/src/c/Mex/MexInitVolume.cpp index dfb00e116a883098ba7979cd9d22bc4cd0f93672..65a58cc3902720f343d307564b0b7e7ee4342e7a 100644 --- a/src/c/Mex/MexInitVolume.cpp +++ b/src/c/Mex/MexInitVolume.cpp @@ -29,7 +29,7 @@ void MexInitVolume::execute(int nlhs, mxArray* plhs[], int nrhs, const mxArray* { // TODO: Should look over this and verify it's right for x-y anisotropy! double* physData = (double*)mxGetData(prhs[1]); - physVoxel = Vec<float>(physData[1], physData[0], physData[2]); + physVoxel = Vec<float>(physData[0], physData[1], physData[2]); } // Compute total volume size in physical units