Convert cell array to vector

Hi there,
I have imported time values (i.e 12:57:00) into matlab using the textscan() function.
fid = fopen('time.txt','r')
out = textscan(fid,'%s')
fclose(fid)
out{1}
However the values are in a cell array, I think?
How can I convert them to a vector? I need to do this because I want to import the data into the dfitool.
Thank you

 Respuesta aceptada

Jan
Jan el 13 de Feb. de 2012

1 voto

I assume you want a datenum vector:
d = datenum(out{1});
If not, please explain the wanted output format.

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 13 de Feb. de 2012

Editada:

a
a
el 12 de Oct. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by