Importing ASCII file in matlab

2 Ansichten (letzte 30 Tage)
Navid
Navid am 23 Nov. 2013
Kommentiert: Image Analyst am 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

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by