Skip to content
Snippets Groups Projects
Verified Commit 76bff6b4 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

make normalize_value more efficient

parent be2ffae8
No related branches found
No related tags found
No related merge requests found
Pipeline #3467 failed
......@@ -31,7 +31,7 @@ function series = normalize_value(series)
if iscell(series.value)
series.original_value = series.value;
series.value(cell2mat(cellfun(@(x)strcmp(x,'NA'),series.value,'UniformOutput',false))) = {NaN};
series.value(strcmp(series.value, 'NA')) = {NaN};
else
series.original_value = num2cell(series.value);
series.value = num2cell(series.value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment