Effacer les filtres
Effacer les filtres

Convert cell array to vector

1 vue (au cours des 30 derniers jours)
John
John le 13 Fév 2012
Modifié(e) : a le 12 Oct 2013
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

Réponse acceptée

Jan
Jan le 13 Fév 2012
I assume you want a datenum vector:
d = datenum(out{1});
If not, please explain the wanted output format.
  1 commentaire
John
John le 14 Fév 2012
Many thanks Jan

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by