フィルターのクリア

TEXTSCAN not value, comma, space problem.

3 ビュー (過去 30 日間)
yosun yapar
yosun yapar 2019 年 5 月 25 日
コメント済み: NAVNEET NAYAN 2021 年 10 月 1 日
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 件のコメント
yosun yapar
yosun yapar 2019 年 5 月 26 日
It worked.
Thank you,
NAVNEET NAYAN
NAVNEET NAYAN 2021 年 10 月 1 日
Thank You So Much. I was stuck and I got a way out.

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

その他の回答 (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