<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
On your sample, mgetl() fails in the same way, and fscanfMat() also
fails for other reasons.<br>
Here is a running solution:<br>
-----<br>
t = read("myfile.csv",-1,1,"(a)");<br>
M = [];<br>
for L = strsplit(t,strindex(t,ascii(13)))'<br>
L = strsubst(strsplit(L,strindex(L,",")),",","")';<br>
L = strsubst(L,ascii(13),"");<br>
M = [ M ; L ];<br>
end<br>
eval(M(16:$,:))<br>
----<br>
<br>
Samuel<br>
<br>
----- Message d'origine ----- <br>
De : R Sippe <br>
Date : 29/04/2011 11:39:
<blockquote cite="mid:SNT107-DS130756AF12D8D39E728BB2DF9A0@phx.gbl"
type="cite">
<div dir="ltr">
<div style="font-family: 'Calibri'; color: rgb(0, 0, 0);
font-size: 12pt;">
<div>Dear Sir/Madam,</div>
<div> </div>
<div>I am new to Scilab and I want to use Scilab to analyze
data contained in csv files.</div>
<div>When I use read_csv(myfile.csv) it only returns the first
row of the data.</div>
<div> </div>
<div>Opening the file in notepad shows that each row of data
is separated by a space instead of a return.</div>
<div>However these csv files are outputs of a program and I
don’t want to change the format manually for each csv file.</div>
<div> </div>
<div>What is the best way to deal with this problem?</div>
<div> </div>
<div>Greets,</div>
<div> </div>
<div>Robin</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>