From 9fdee0e20d33009626ea62248f73506c13d00895 Mon Sep 17 00:00:00 2001 From: sflorescu <43118429+sflorescu@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:33:30 +0100 Subject: [PATCH] Editted status to work --- matlab/beamform_mex.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/beamform_mex.cu b/matlab/beamform_mex.cu index bbd7778..cdb7147 100644 --- a/matlab/beamform_mex.cu +++ b/matlab/beamform_mex.cu @@ -41,7 +41,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { int status = 0; - if (nlhs > 0) { - plhs[0] = mxCreateDoubleScalar((double)status); + if (nlhs > 1) { + plhs[1] = mxCreateDoubleScalar((double)status); } }