Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Extract data from a huge file using matlab

  1. Apr 26, 2010 #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?
  2. jcsd
  3. Apr 26, 2010 #2
    Re: extract data from a "huge" file using matlab

    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.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Discussions: Extract data from a huge file using matlab
  1. Matlab data extracting (Replies: 6)