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

 採用された回答

Jan
Jan 2012 年 2 月 13 日

1 投票

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

1 件のコメント

John
John 2012 年 2 月 14 日
Many thanks Jan

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Type Conversion についてさらに検索

タグ

質問済み:

2012 年 2 月 13 日

編集済み:

a
a
2013 年 10 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by