extracts columns from text file

Share:

Description

Extracts a column from text file to a matrix. If in a particular file line the number of columns is less then a column specified, returns last column!

Usage

1

Arguments

file

file name

whichcols

which columns to extract

Value

matrix of strings with values from that columns