I have a huge text file (.txt), how to read the data in text to a hashtable in matlab.

2 views (last 30 days)
Please help.
  3 Comments
Aditya
Aditya on 23 Jan 2014
Walter, Yes! I want to use the container class. And I want to write my own code for my program, can u help me doing so.
Also let me know if there are any alternatives like textscan(), functions that can be used to read huge files.
Thanks
Walter Roberson
Walter Roberson on 23 Jan 2014
If this is the same files as for your earlier http://www.mathworks.co.uk/matlabcentral/answers/113231-how-to-handle-1-gb-2gb-txt-files-efficiently-in-matlab-i-used-textscan-is-it-efficient then you will need to answer the questions I asked there before I can make a recommendation.
What would be a typical key for your purpose? And what would be a typical value?

Sign in to comment.

Answers (0)

Categories

Find more on Dictionaries in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!