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')) = [] Related SolutionsMATLAB: Find column names with particular names in MATLAB table finalnbs(:,strncmp(finalnbs.Properties.VariableNames, 'connected', length('connected')) ) = []; MATLAB: Remove units from a string s = '1.25ns';v = sscanf(s, '%f') Related QuestionHow to create code to remove rows from a tableRemoving all highlightning programmaticallyIs it possible to remove a certain character (dash sign / -) from an entire column in a table.Remove/Refresh all Fields
Best Answer