How to read file in matlab?

前端 未结 3 522
再見小時候
再見小時候 2021-01-05 14:14

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

3条回答
  •  猫巷女王i
    2021-01-05 14:41

    The answer is surprisingly simple:

    fid = fopen('depthMap.txt');
    A = fscanf(fid, '%f');
    fclose(fid);
    

提交回复
热议问题