精華區beta MATLAB 關於我們 聯絡資訊
EX: (這是我假設的.txt的內容) 4.55555 8.66666 9.22222 5.88888 7.44444 3.99999 8.25777 7.33333 3.55564 9.32517 我想一次次的讀列的內容: [fid,message]=fopen('test.txt','r'); temp=[]; while (fid~=檔案的結尾) ------>這邊不知道怎麼表達 A=fscanf(fid,' %g %g',[1 2]) fseek(fid,1,'eof'); temp=[temp;A]; end fclose(fid); code如上,想請問各位大大 那個不知表達的地方要怎麼寫呢? 謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.58.14.95 ※ 編輯: jackyboss 來自: 210.58.14.95 (03/17 02:14)
wolako:help feof 03/17 02:16
jackyboss:謝謝!! 03/17 14:09