how to import large text file into a MAT file?

2 visualizaciones (últimos 30 días)
maida
maida el 2 de Dic. de 2016
Editada: per isakson el 5 de Dic. de 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 comentarios
maida
maida el 4 de Dic. de 2016
how to do that?? :/
per isakson
per isakson el 5 de Dic. de 2016
Editada: per isakson el 5 de Dic. de 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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Large Files and Big Data en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by