I used this :
weights=fopen('indices.txt');
weights=textscan(weights, '%d %d %d %d %d %d %d')
but this only reads the first line of my file. my file looks like this :
0 90 100 5 0 0 0 (class)
19 5 0 0 0 0 0 (class2)
5 5 0 0 0 0 0 (class3)
-10 -5 0 0 0 0 0 (class4)
And I don't need what's in the brackets
Thanks a lot !