function c = extractDlarrayCell(c)
%extractDlarrayCell Extract data from a cell array containing dlarrays
%   extractDlarrayCell(c) calls extractdata on each dlarray contained in
%   the cell array c and returns a new cell array containing the extracted
%   data in place of those dlarrays.  Cells that do not contain a dlarray
%   are left untouched.

%   Copyright 2019 The MathWorks, Inc.

for n = 1:numel(c)
    thisCell = c{n};
    if isa(thisCell, 'dlarray')
        c{n} = extractdata(thisCell);
    end
end
