help-octave
[Top][All Lists]
Advanced

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

how to load ascii- data file


From: j schreiber
Subject: how to load ascii- data file
Date: Fri, 17 Oct 2003 15:32:36 +0200

Hello,

I want to load an ascii-file containing text and numbers e.g.:

'1'
'Schi'
'Bucrg'
'7:39.58,0'
'3:18.29'
'05:19.55'
'nan'
'02:59.07'
'379'
'M30'
'1'
'2'

I tried both, with and without ' but

>> load schies.txt
error: load: failed to read matrix from file `schies.txt'
>>

I also tried:

>> fid=fopen('schies.txt ')
fid =
{
  id = 3
  name = schies.txt
  mode = r
  arch = native
  status = open
}
>>

but then with fscanf, what do I have to use for fid?
fid{1}  fid{id} or what is the syntax?

and what do I have to use for "Template" in fscanf?

regards, Jörg

>> version
ans = 2.1.36

win2000




-------------------------------------------------------------
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]