how to import large text file into a MAT file?

2 views (last 30 days)
maida
maida on 2 Dec 2016
Edited: per isakson on 5 Dec 2016
hi, i string feature vectors from different algos in a test file. the dimension of FV are 50 by 262144. when ever i try to import by using matlab button it gives me error
"Import operation failed. The most likely reason is that there are unimportable cells in the selection. Try adding a rule in the toolstrip to convert unimportable cells into numbers"
please help me soon. is my data too large to be handled? should i try another PC? please wat can be the other way to store my text file feature vector into a matfile?
Please guide me i detail or mail me : maidakhalid2@hotmail.com in case for a detail guidance
  5 Comments
per isakson
per isakson on 5 Dec 2016
Edited: per isakson on 5 Dec 2016
You didn't try to answer any of my questions.
I don't understand your overall data flow. Let me guess:
  1. "extract feature vector" &nbsp You use another program (not Matlab) to do that. This program outputs this large text file. "another program" would explain the existence of the text file.
  2. "how to import large text file into a MAT file?" &nbsp You ask for help to read this file into a variable of the Matlab workspace.
  3. "then i have to save that text file [the value of this variable] in mat file for further" &nbsp That's the simple part. The Matlab function save will do it.
About the text file, I guess
  1. It contains 512*512 columns times 50 rows of plain numbers
  2. The numbers are separated by comma, ","
  3. It contains no text-data; no header; not a single letter

Sign in to comment.

Answers (0)

Categories

Find more on Large Files and Big Data 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!