TEXTSCAN not value, comma, space problem.

Hi,
when a file contains both a space and a comma separated and none value data as appendix,
solutionestimate = textscan(fid,'%s %s %f %s %s %s %s %s %s %f %f %f %f %f %f %f ' ...
, 'Delimiter', {' ',','} , 'MultipleDelimsAsOne', true,);
output does not work correctly. Columns are shifting due to non-values.How can I solve this?

 采纳的回答

dpb
dpb 2019-5-25
Use readtable instead with a FixedWidthImportOptions object. You can begin by seeing if detectImportOptions can figure it out on its own; if not, edit the returned object to match the specific file format.

2 个评论

It worked.
Thank you,
Thank You So Much. I was stuck and I got a way out.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Large Files and Big Data 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by