help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loading a data file


From: John W. Eaton
Subject: loading a data file
Date: Thu, 19 Apr 2001 23:40:22 -0500

On 19-Apr-2001, Gabriel Florit <address@hidden> wrote:

| I collected data in a text file. I load it with the load command. 
| Whos -variables gives
| 
| prot  type               rows   cols  name
| ====  ====               ====   ====  ====
|  wd   matrix            10001      2  7strun
| 
| 
| But when I try to manipulate it, like 
| 
| >>time = 7strun (:,1)
| 
| I get the following:
| 
| >>time = 7strun (:,1)
| parse error:
| 
| >>> time = 7strun (:,1)
|                  ^
| Is there something I'm doing wrong? The 7strun variable is in ASCII format.

The name "7strun" is not a valid variable name.  Valid variables must
match the pattern "[A-Za-z_][A-Za-z0-9_]*".  Unfortunately, load
doesn't properly check for this.  Any volunteers to fix this?

Thanks,

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]