loading a log file using importdata

8 次查看(过去 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".

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by