Trying to remove all columns that have "_Units"

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

Accepted Answer

madhan ravi
madhan ravi on 17 Jul 2020
Edited: madhan ravi on 17 Jul 2020
finalnbs(:,contains(finalnbs.Properties.VariableNames, '_Units')) = []

More Answers (0)

Categories

Find more on Numeric Types in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!