BTW, I read in Mathworks documentation: http://www.mathworks.com/help/matlab/ref/textread.html?searchHighlight=textread&s_tid=doc_srchtitle
that textread is not recommended, but it does not say why and textscan does not seem to work in the same way. I have actually tried implementing textscan but I did not figure it out. Amazing how much time one can lose with I/O ...