... 欲使fscanf 指令傳回一個3×2 的矩陣,可輸入如下: fid = fopen('test.txt'); myData = fscanf(fid,'%g',[3 2]) fclose(fid) % %% fscanf 在讀取檔案時,是一列 ...
確定! 回上一頁