www.omatrix.com





:: O-Matrix ::
> Overview
> Examples
> Performance
> Analysis Functions
> Data Visualization
> The O-Matrix Language
> Data Manipulation/IO
> Application Development
> Using Matlab m-files




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:


Company |  Products |  Showcase |  Support |  Ordering
Copyright© 1994-2009 Harmonic Software Inc. - All rights reserved.