Convert from textread() to textscan()
显示 更早的评论
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 个评论
KSSV
2016-12-21
Have you tried replacing textread with textscan ? No change only changing function.
Aurea94
2016-12-21
KSSV
2016-12-21
no ..output should be only C4 = .....dont write it as C4{1:3}
Aurea94
2016-12-21
Jan
2016-12-21
"Attach a file" means, that you can attach it here in the forum. There is an "Attach file" button on top of the field to type the messages.
Aurea94
2016-12-21
KSSV
2016-12-22
Text file is missing...
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!