From 744c088e3a3edbe612ebf733fcb4d4f5d76b6002 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Thu, 21 Nov 2024 01:29:06 -0500 Subject: [PATCH] [bug] correctly return integer based w0 and detid in pattern3d --- mcxlab/mcxlab.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mcxlab/mcxlab.m b/mcxlab/mcxlab.m index 8a1b4203..05a4c553 100644 --- a/mcxlab/mcxlab.m +++ b/mcxlab/mcxlab.m @@ -560,6 +560,8 @@ flags = {cfg(i).savedetflag}; if (isfield(cfg(i), 'issaveref')) flags{end + 1} = cfg(i).issaveref; + else + flags{end + 1} = 0; end if (isfield(cfg(i), 'srcnum')) flags{end + 1} = cfg(i).srcnum;