필터 지우기
필터 지우기

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 CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by