how can i get a column by it's variable name
Show older comments
can someone help me please
My code :
A = uigetfile
Masse = readtable('Masse_rouleaux.csv',opts, 'ReadVariableNames', true);
w = {A(1:2)} % it returns the first two characters of the filename -> W = '06'
Masse_ = Masse.w; % i need the column whose title is "6"
it takes w as a column title, but i need the result of w on it
Accepted Answer
More Answers (0)
Categories
Find more on Programming 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!