I have a txt file, and the content of the file is rows of numbers, each row have 5 float number in it, with comma seperate between each number. example:
1.1 , 12 , 1
The answer is surprisingly simple:
fid = fopen('depthMap.txt'); A = fscanf(fid, '%f'); fclose(fid);