Convert from textread() to textscan()

4 ビュー (過去 30 日間)
Aurea94
Aurea94 2016 年 12 月 21 日
コメント済み: KSSV 2016 年 12 月 22 日
I'm trying to update my code and I want to know how can I type this with textscan()
formats = '%s%s%s' ;
headerLines4 = 34 ;
delimiter = '" "' ;
name_file = strcat(pathname,'Simu_',simu_s,'_',j_s,'I',i_s,'.txt') ;
[C4{1:3}] = textread(name_file,formats,'headerlines', headerLines4, 'delimiter', delimiter) ;
Thank you very muh in advance and Happy Xmas!
  7 件のコメント
Aurea94
Aurea94 2016 年 12 月 21 日
Ok. I didn't know about it. I attach 2 files, the one which works with textread (Read_data_analyse.m) and the one which doesn't work with textscan (Read_data_analyse_textscan.m).
KSSV
KSSV 2016 年 12 月 22 日
Text file is missing...

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by