Extract data from a huge file using matlab

  • #1
extract data from a "huge" file using matlab

hi guys,
I need some help!
I have a file(.txt) which concludes about 20,000 lines. There are not only number data but also letters and different characters in the file. I want to extract some certain useful data from this file and put them into a calculation program.

could you guys please write a .m file for me?
 

Answers and Replies

  • #2
424
1


Matlab should handle this for you automatically. Locate the file in the Matlab file browser, right-click on it, and import it. A dialog will pop up that allows you to specify precisely how Matlab imports the data; as an added bonus, recent versions of Matlab also allow you to specify that it should automatically generate an M-file for the import, allowing you quickly to repeat the procedure on similar files without having to use the import dialog.
 

Related Threads on Extract data from a huge file using matlab

Replies
2
Views
5K
Replies
3
Views
667
Replies
8
Views
3K
  • Last Post
Replies
3
Views
3K
Replies
2
Views
38K
Replies
4
Views
12K
  • Last Post
Replies
6
Views
23K
Replies
1
Views
4K
Replies
0
Views
2K
Replies
2
Views
1K
Top