Extract data from a huge file using matlab

  • #1
Monica_xinchi
1
0
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
shoehorn
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.
 

Suggested for: Extract data from a huge file using matlab

  • Last Post
Replies
1
Views
146
Replies
1
Views
180
Replies
1
Views
586
  • Last Post
Replies
2
Views
363
  • Last Post
Replies
5
Views
258
Replies
4
Views
498
  • Last Post
Replies
1
Views
535
Replies
15
Views
840
  • Last Post
Replies
9
Views
3K
Replies
2
Views
704
Top