function [offsetStruct] = createOffsetsStruct(pOffsetTableRowNames, pOffsetTableData) %CREATEOFFSETSSTRUCT Summary of this function goes here % Detailed explanation goes here %% Initialize return variable offsetStruct = struct(); %% Convert to struct rowNames = pOffsetTableRowNames; for i = 1:length(rowNames) offsetStruct.(rowNames{i}) = pOffsetTableData{i, 1}; end end