The line x=trial_03(:,3); in MATLAB assigns the values in the third column of the matrix variable trial_03 to the variable x.
The : operator selects all the rows of the matrix while the 3 specifies the third column.
So, x will now be a column vector containing all the elements from the third column of the matrix trial_03.
Here's an example:
main.m176 chars14 lines
gistlibby LogSnag