[Top][All Lists]

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

converting a Matlab fread line

From: Harbinson, Jeremy
Subject: converting a Matlab fread line
Date: Fri, 3 Dec 2004 23:39:52 +0100

I have been given a Matlab script which I would like to run in Octave. Octave 
has a problem with:

F = fread(fid,2,'char=>double');

(the sequence of commands is:
fid = fopen(filename,'r');

fseek(fid, 37, -1);
F = fread(fid,2,'char=>double');)

I suspect that the char=>double conversion might be the cause of the problem. 
Is this correct and is there a fix/workaround.
all the best,
Jeremy Harbinson

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

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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