TEXTSCAN not value, comma, space problem.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
yosun yapar
el 25 de Mayo de 2019
Comentada: NAVNEET NAYAN
el 1 de Oct. de 2021
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?
0 comentarios
Respuesta aceptada
dpb
el 25 de Mayo de 2019
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Text Files en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!