Skip to content
Snippets Groups Projects
Commit d5e76373 authored by leprob001's avatar leprob001
Browse files

Renamed variable that was named like a built-in MATLAB function.

parent cb432789
Branches
Tags
No related merge requests found
...@@ -210,19 +210,19 @@ end ...@@ -210,19 +210,19 @@ end
end end
end end
function [ cell ] = parseAsCell(pContent) function [ parsedCell ] = parseAsCell(pContent)
lines = splitlines(pContent); lines = splitlines(pContent);
cell = {}; parsedCell = {};
for i = 1:length(lines) for i = 1:length(lines)
if (isempty(lines{i}) || isComment(lines{i})) if (isempty(lines{i}) || isComment(lines{i}))
continue continue
end end
[line, comment] = extractValueAndComment(lines{i}); [line, comment] = extractValueAndComment(lines{i});
cell{i} = strsplit( ... parsedCell{i} = strsplit( ...
strtrim(line), {' ', '\t'}, 'CollapseDelimiters', true ... strtrim(line), {' ', '\t'}, 'CollapseDelimiters', true ...
); );
end end
cell = vertcat(cell{:}); % combine all cells to one parsedCell = vertcat(parsedCell{:}); % combine all cells to one
end end
function [ value, comment ] = extractValueAndComment(pString) function [ value, comment ] = extractValueAndComment(pString)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment