help-octave
[Top][All Lists]
Advanced

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

texscan(filename,'%s %s %s %n %s', 'delimiter', '; ') ## equivalent in O


From: Ambre Lili
Subject: texscan(filename,'%s %s %s %n %s', 'delimiter', '; ') ## equivalent in Octave ??
Date: Wed, 9 Jul 2008 14:15:05 +0200

Hello everyone,

I would like to find a precise Octave equivalent for the Matlab function 'texscan'.

More precisely, I have a text file containing rows like this one :
19:45:21.3366; 00:25:56:84:b2:55; 00:e6:4b:bd:ac; 15887; 0x0028e36

and the Matlab script is :

tcpd_fid{i}=fopen(tcpd_log_file{i});
tcpd_data{i}=textscan(tcpd_fid{i},'%s %s %s %n %s', 'delimiter', ';');
fclose(tcpd_log_file{i});


and I would like to obtain the same result(eg a cell array of five cells, each cell being a column vector) in Octave.

Do anyone have an idea ?

I´ve tried fscanf, fgetl and others but I am not successful in obtaining the same results

I work with Octave 2.9 under Debian 2.6.18-6-686

Thank you very much in advance,

Ambre

reply via email to

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