Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

dlmread (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the support class.

Syntax

m = dlmread(file, d)

m = dlmread(file, d, range)

m = dlmread(file, d, row, col)

Description

Reads an ASCII delimited file.

Examples

Inputs

Name Description
file Specifies the file you want to read. file is a string
d Specifies the delimiter that separates the values in the file. For example, a value of \t specifies a single tab character as the delimiter. d is a string.
range Specifies the range of the data you want to read. range is a vector of four elements [a b c d], where [a b] is the upper-left corner of the data you want to read and [c d] is the lower-right corner of the data you want to read. You also can use Microsoft Excel spreadsheet notation to specify range, as in range = 'A1..B3'.
row, col Specify the location at which you want to start reading the data. row and col are zero-based.

Outputs

Name Description
m Returns the matrix.

Examples

In the following example, LabVIEW creates test.dlm in the LabVIEW Data directory. LabVIEW then reads the values in test.dlm and returns these values as a matrix.

dlmwrite('test', magic(5), '/', 2, 2);
a = dlmread('test', '/', 'A2..C3')

Related Topics

csvread
csvwrite
dlmwrite
str2rng


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit