MATLAB: How to write a command in matlab to simplify series of commands

It is my first time using matlab. I have to get values extracted from a text file. To get the data or points on the matrix I have to type
>>output(:, 1, 60)
>>resA=output(:, 1, 60)
then
>>resA=output(:, 2, 60)
until
>>resA=output(:, 14, 60)
what command can I use to extract the data from 1-14?

Best Answer

resA = output( :, 1:14, 60 );