how can i get a column by it's variable name

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

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Tags

Asked:

on 7 Mar 2022

Commented:

on 8 Mar 2022

Community Treasure Hunt

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

Start Hunting!