Importing ASCII file in matlab

2 visualizaciones (últimos 30 días)
Navid
Navid el 23 de Nov. de 2013
Comentada: Image Analyst el 23 de Nov. de 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

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by