Here I made a small csv file consisting of 8 values. Read it as uint8 it in matlab and used textscan to retrieve the original 8 values.
orgdat = [132 231 334 234; 132 432 423 334];
csvwrite('temp.csv',orgdat);
fid = fopen('temp.csv');
dat = fread(fid,inf,'*uint8');fclose(fid);
cell2mat(textscan(char(dat),'%f,%f,%f,%f'))
>>
ans =
132 231 334 234
132 432 423 334
Or if you just want to scan for numbers:
result = cell2mat(textscan(char(dat),'%f','Delimiter',','))
>>
result =
132 231 334 234 132 432 423 334
To reshape it you could look for the number of rows and reshape
rows = sum(dat==10)+(dat(end)~=10);
reshape(result,[],rows)'
textscanto convert a csv-like character vector to individual values.uint8..