Import txt file into matlab using programically
조회 수: 1 (최근 30일)
이전 댓글 표시
I have data in txt file as shown below:
ffffffffffffffffffffffffffff
ffffffffffffffffffffffffffff
01234efefabcdeffffffffffffff
ffffffffffffabcdeabcdeffffff
abcdefabcdefabcdefabcdefabcd
abcdffffffefefefefbabadededf
1234dace56778445dcfacedbebbf
abcdfedfedabce34127432ffedab
now these data i have to take in m file by importing txt file into matlab.For that what matlab code should be written.....
Thanks
댓글 수: 4
Jan
2012년 9월 12일
And what is the desired output? A String or are these characters 4 Byte hex-encoded signed integers?
채택된 답변
추가 답변 (2개)
Kevin Claytor
2012년 9월 11일
The Documentation has rather extensive help for file opening, reading and saving http://www.mathworks.com/help/techdoc/ref/f16-5702.html#f16-14492. I will direct you to a few in particular;
댓글 수: 0
K
2012년 9월 11일
I've used the command textread really successfully with .txt files where the columns of numbers were separated by spaces or tabs. The command looked something like this:
textread('Nameoftextfile.txt','%f %f %f','headerlines',12);
Try searching for textread in the Matlab help to get details for your specific application.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!