movevars
Move variables in table or timetable
Description
T2 = movevars(
moves the variables to the right of the table variable indicated by
T1
,vars
,'After',location
)location
. You can specify variables and
location
by name, by position, or by using logical
indices.
For example, to move a table variable named var3
after table
variable var5
, use T2 =
movevars(T1,'var3','After','var5')
.
T2 = movevars(
moves the table variables specified by T1
,vars
,'Before',location
)vars
to the left of the
variable specified by location
.
To move
vars
to beginning of the table, useT2 = movevars(T1,vars,'Before',1)
.To move
vars
to end of the table, useT2 = movevars(T1,vars,'After',width(T1))
. Thewidth
function returns the number of variables in a table.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2018a