Importing ASCII file in matlab

조회 수: 2 (최근 30일)
Navid
Navid 2013년 11월 23일
댓글: Image Analyst 2013년 11월 23일
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 Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by