Borrar filtros
Borrar filtros

Correct syntax for textscan() function

2 visualizaciones (últimos 30 días)
John
John el 13 de Feb. de 2012
Editada: Laura Pop el 9 de Oct. de 2013
Hello there,
Would anybody know the correct syntax to import a column of time values from a text file using the textscan() function. The format of the time values is like this:
12:57:00
15:19:00
08:07:00
10:36:00
Many thanks

Respuesta aceptada

Friedrich
Friedrich el 13 de Feb. de 2012
Hi,
try %s as format string
out = textscan(fid,'%s')
(fid is the filepointer created by fopen)
  4 comentarios
John
John el 13 de Feb. de 2012
Thanks very much
John
John el 13 de Feb. de 2012
Hello,
One more question, if you don't mind?
How would I convert the array of values to a vector to I could import the data into the dfitool.
Thanks again

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Import and Export en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by