From ee5f91f7fc002fbf2a49e590550bc9c5ec070032 Mon Sep 17 00:00:00 2001 From: Gabriele Santin Date: Fri, 21 Feb 2025 17:33:30 +0100 Subject: [PATCH] Changed DelsysFile.m "GetAllData" function Changed "GetAllData" function in order to return a cell array of all the components' (i.e. sensors) data, moreover it returned an error for the missing "obj.". I think the intention was to concatenate channels of all components, but I'm not sure. The modification I made preserves component separation. --- File Reading Examples/MATLAB API/DelsysFile.m | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/File Reading Examples/MATLAB API/DelsysFile.m b/File Reading Examples/MATLAB API/DelsysFile.m index 1dd904bc..4f08c8a2 100644 --- a/File Reading Examples/MATLAB API/DelsysFile.m +++ b/File Reading Examples/MATLAB API/DelsysFile.m @@ -27,13 +27,10 @@ %Return all of the data from all sensor/component channels% componentCount = obj.ComponentCount(); - data = {}; + data = cell(componentCount,1); for i = 1:componentCount - component = Component(i); - componentData = component.GetAllData(); - for j = 1:length(componentData) - data{i} = componentData{j}; - end + component = obj.Component(i); + data{i} = component.GetAllData(); end end