title: how to get number of digits from a text file in matlab
body: <p>I'm trying to read a text file and then count the number of digits ( number 0 to 9) contained in the file . i used fid = fopen('filename','r') to open the file , then i used  textscan(fid,'%f') to try to get the digits but it returns an empty (0 by 1) matrix. I also used fscanf but doesn't work. I thought it was the formatspec that was wrong but playing with other format specs doesn't work. please advice </p>