I use Data= textread(FileName,'%s', 'delimiter', '\n'); to read .asc file of eyemovement, but all data in the same column like this:
I want put every valuable depart by space in a cell, how can I do?

7 comentarios

madhan ravi
madhan ravi el 22 de Oct. de 2018
'/t' as delimiter and does it solve your problem?
j shen
j shen el 22 de Oct. de 2018
no, still the same
madhan ravi
madhan ravi el 22 de Oct. de 2018
Upload your file
j shen
j shen el 22 de Oct. de 2018
it can't upload .asc so I change it into .txt and upload
madhan ravi
madhan ravi el 22 de Oct. de 2018
Sure thing!
j shen
j shen el 22 de Oct. de 2018
I solved! It's '\t'. Thank you so much!
madhan ravi
madhan ravi el 22 de Oct. de 2018
Editada: madhan ravi el 22 de Oct. de 2018
Glad to help,I put it in the answer section below accept it so that people know the question had been solved

Iniciar sesión para comentar.

 Respuesta aceptada

Más respuestas (1)

KSSV
KSSV el 22 de Oct. de 2018

0 votos

fid = fopen('data.txt') ;
S = textscan(fid,'%s','delimiter','\n') ;
fclose(fid) ;
S = S{1}

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Oct. de 2018

Editada:

el 22 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by