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일

1 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Variables에 대해 자세히 알아보기

질문:

2019년 5월 25일

댓글:

2021년 10월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by