function [offsetsCell] = createOffsetsCell(pOffsetsStruct, pTableRowNames) %CREATEOFFSETSCELL Summary of this function goes here % Detailed explanation goes here %% Initialize return variable offsetsCell = cell(length(pTableRowNames), 1); %% Create cell for i = 1:length(pTableRowNames) currentRowName = pTableRowNames{i}; if artoa.data.hasMember(pOffsetsStruct, {currentRowName}) value = pOffsetsStruct.(currentRowName); else value = 0; end offsetsCell{i} = value; end end