%% Specify Multiple Variables
% Remove multiple table variables using the removevars function. You can specify variables by name or by position.
% Read data from a spreadsheet into a table.

T1 = readtable('outages.csv');
head(T1,3)

%
% Remove the variables named Loss and Customers. Specify names using a cell array of character vectors.

T2 = removevars(T1,{'Loss','Customers'});
head(T2,3)

%
% Remove the first and fourth variables, using a numeric array to indicate their positions in T2.

T3 = removevars(T2,[1 4]);
head(T3,3)

% Copyright 2012 The MathWorks, Inc.