Hello,
Im trying to replace all [] with '-99' only in the columns that begin with Q_ in the table t below. How would I do that with an index ? Its important that I dont use the variables names.
% data
Q_x = {'1'; '[]'; '3'};a = {'A'; 'B'; 'C'};o = {'A'; '[]'; 'C'};Q_y = {'1'; '[]'; '3'};t = table(Q_x, a, o, Q_y)all_vars = t.Properties.VariableNames;index = find(strncmp(all_vars, 'Q_', 2));
Thank you,
Best Answer