Looking at the data, I see 13 and 10. These are the ascii values of carriage return and line feed.
So the data is just a list of ascii values representing characters.
To convert to a string, just do:
s = char(data);
Then (after making sure, you do proper aligning of strings, to prevent cuts between digits), use
val = str2num(s);
untested code, processing chunks of 100 bytes at once
dataacc = [];
while true
% read data
data="">
% append to accumulation buffer
datacc = [datacc, data];
% find last line feed
idx = find(dataacc == 10);
% if something found
if ~isempty(idx)
% process data until last linefeed character
val = str2num(char(dataacc(1:idx(end))));
% do something useful with the data
disp(val);
% remove processed part from accumulation buffer
dataacc(1:idx) = [];
end
end