diff --git a/+DSS_MATLAB/APIUtil.m b/+DSS_MATLAB/APIUtil.m index 7378385..26ff1f1 100644 --- a/+DSS_MATLAB/APIUtil.m +++ b/+DSS_MATLAB/APIUtil.m @@ -152,7 +152,7 @@ function delete(obj) function result = get_int32_gr_array(obj) data = calllib(obj.libname, 'ctx_DSS_GR_DataPtr_PInteger', obj.dssctx); cnt = obj.CountPtr_PInteger.Value; - setdatatype(data, 'int32Ptr', 1, cnt); + setdatatype(data, 'int32Ptr', 1, cnt(1)); result = data.Value; if obj.allow_complex && (cnt(4) ~= 0) % If the last element is filled, we have a matrix. Otherwise, the