[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: csv loading
From: |
Martin Helm |
Subject: |
Re: csv loading |
Date: |
Thu, 16 Apr 2009 19:38:44 +0200 |
User-agent: |
KMail/1.10.3 (Linux/2.6.27.21-0.1-default; KDE/4.1.3; x86_64; ; ) |
> Hi,
>
> I was trying to use csv file that is exported from MySQL database. It
> seems there is a package[1] i can use but it is not reachable. Anybody
> has it?
>
> [1] http://wiki.octave.org/wiki.pl?TipsTricks (A hack to get Hornik's
> "aload.m" function to load Comma Separated Values (*.csv) files)
>
> Or is there any other simple way to use mysql csv files.
The "miscellaneous" package in octave forge http://octave.sourceforge.net
contains a csv2cell function
-- Function File: C = csv2cell (FILE)
-- Function File: C = csv2cell (FILE, SEP)
-- Function File: C = csv2cell (FILE, SEP, PROT)
Read a CSV (Comma Separated Values) file and convert it into a
cell. SEP changes the character used to separate two fields. By
default, two fields are expected to be separated by a coma (`,').
PROT changes the character used to protect a string. By default
it's a double quote (`"').