[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Importing large amounts of data
From: |
indium |
Subject: |
Re: Importing large amounts of data |
Date: |
Tue, 19 Jun 2012 13:33:04 +0000 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Dear Hannes,
do you realise that you are 'abusing' the source() command:
octave:1> help source
`source' is a built-in function
-- Built-in Function: source (FILE)
Parse and execute the contents of FILE. This is equivalent to
executing commands from a script file, but without requiring the
file to be named `FILE.m'.
I think you are really looking for the load() function: it loads your datafile
into a variable (or several).
See 'doc load' for more info.
Otherwise, try dlmread() or go via the C-style I/O functions inside Octave:
fread() does binary reading or fscanf() formatted reading. See 'doc fread', etc.