make normalize_value more efficient

parent be2ffae8
Pipeline #3467 failed with stage
in 15 seconds
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment