필터 지우기
필터 지우기

Convert cell array to vector

조회 수: 1 (최근 30일)
John
John 2012년 2월 13일
편집: a 2013년 10월 12일
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일
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개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by