MATLAB: Trying to remove all columns that have “_Units”

remove

I tried finalnbs(:,strncmp(finalnbs.Properties.VariableNames, '_Units', length('_Units'))) = [];.. did not get much.

Best Answer

finalnbs(:,contains(finalnbs.Properties.VariableNames, '_Units')) = []