|
READTXT.OMS
Script File:
# Description:
# Read an ASCII data file.
#
# The sample file example\Signal.txt is a hypothetical signal
# that is defined by 2 columns and 80,000 rows.
const iFile = [OM_INSTALL,"\example\Signal.txt"]
#
# Determine the number of rows in the sample file
Nr = nrows(iFile)
# Read all rows of the file
Data = read(iFile,"real", Nr)
# Plot the second column of the data vs. the first
gplot(Data.col(1), Data.col(2))
Output:
|
|