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

csvwrite (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

csvwrite(file, m)

csvwrite(file, m, row, col)

Description

Writes values from a matrix to a file of values that are separated by commas.

Examples

Inputs

Name Description
file Specifies the file you want to write to. file is a string.
m Specifies the matrix of values you want to write.
row, col Specify the location in the file at which you want to start writing. row and col are zero-based.

Examples

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

csvwrite('test', magic(5), 2, 2);
a = csvread('test', 'A2..C3')

Related Topics

csvread
dlmread
dlmwrite


Resources


 

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