Importing ASCII file in matlab

10 次查看(过去 30 天)
Hi all, I'm trying to import an ASCII file in order to manipulate it in Matlab,I've used: tmp = importdata('Antos_2013-11-07_07-08-58.asc');
but it does not load the all data of my ASCII file,it gives: tmp.textdata cell and this is just a small part of my ASCII file,I need to store the all data into an array or matrix to manipulate them. As a beginner I would really appreciate any helps.
thanks,Navid

采纳的回答

Image Analyst
Image Analyst 2013-11-23
You forgot to attach your file. So we don't know the format. Maybe you can use csvread(), dlmread(), textscan(), fgetl(), or something else instead.
  2 个评论
Navid
Navid 2013-11-23
firstly thanks for your answer, I can't attach my complete file here but inside of my ASCII file is like that: 0,0000;0,0000;0,0000;1,4400;0,0000;;;0,0000;0,0000;0,0000;... could it help?
Image Analyst
Image Analyst 2013-11-23
Sure, try dlmread(filename, ';')

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Text Data Preparation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by