Quantcast
Viewing all articles
Browse latest Browse all 3

How do I read several lines in Matlab with textscan?

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 !


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>