Importing ASCII file in matlab

2 views (last 30 days)
Navid
Navid on 23 Nov 2013
Commented: Image Analyst on 23 Nov 2013
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

Accepted Answer

Image Analyst
Image Analyst on 23 Nov 2013
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 Comments
Navid
Navid on 23 Nov 2013
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 on 23 Nov 2013
Sure, try dlmread(filename, ';')

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!