Read columns of a whitespace delimited text file

Share:

Description

Read columns of a whitespace delimited text file

Usage

1
readcols(fn, colsel, nFirstSkipLines, nSkipUnit)

Arguments

fn

input filepath

colsel

a vector of target column numbers

nFirstSkipLines

Integer. Number of lines to skip in the beginning

nSkipUnit

Integer M. Let the function read one line out of every M

Value

A matrix of strings from selected columns