loading a log file using importdata

조회 수: 11 (최근 30일)
noa
noa 2013년 8월 11일
hi
i have a log file containing numbers as well as words.
i am using the command:
DTA = importdata('filename.log', ',');
but it is loaded as a cell array of strings instead of a struct with data and text seperated. in other log files that i have i did not have this problem
thanks
  댓글 수: 1
Cedric
Cedric 2013년 8월 11일
편집: Cedric 2013년 8월 11일
Please post a copy of part of the content of the log file in your question, e.g. 20-30 lines.

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

답변 (1개)

the cyclist
the cyclist 2013년 8월 11일
The exact output of importdata() is dependent on the format of the input file. This behavior is described in the "Output Arguments" section of the documentation: http://www.mathworks.com/help/matlab/ref/importdata.html. Expand the subsection "A -- Data from the file".
  댓글 수: 1
noa
noa 2013년 8월 11일
it is a simple text file. but the name is always *.log

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

카테고리

Help CenterFile Exchange에서 Cell Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by