%!demo
%! ## `removevars` drops variables, selected by name or by position index.
%!
%! Name = string ({'Sanchez'; 'Johnson'; 'Li'});
%! Age = [38; 43; 40];
%! Gender = categorical ({'M'; 'M'; 'F'});
%! Visit = datetime (2024, [1; 2; 3], [5; 6; 7]);
%! T = table (Name, Age, Gender, Visit)
%! removevars (T, 'Gender')
%!
%! ## Several variables can go at once, here selected by their column numbers.
%! removevars (T, [2, 4])
