필터 지우기
필터 지우기

Correct syntax for textscan() function

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

채택된 답변

Friedrich
Friedrich 2012년 2월 13일
Hi,
try %s as format string
out = textscan(fid,'%s')
(fid is the filepointer created by fopen)
  댓글 수: 4
John
John 2012년 2월 13일
Thanks very much
John
John 2012년 2월 13일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by