Trying to remove all columns that have "_Units"
3 views (last 30 days)
Show older comments

I tried finalnbs(:,strncmp(finalnbs.Properties.VariableNames, '_Units', length('_Units'))) = [];.. did not get much.
0 Comments
Accepted Answer
madhan ravi
on 17 Jul 2020
Edited: madhan ravi
on 17 Jul 2020
finalnbs(:,contains(finalnbs.Properties.VariableNames, '_Units')) = []
More Answers (0)
See Also
Categories
Find more on Numeric Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!