how to import large text file into a MAT file?

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 Kommentare

per isakson
per isakson am 3 Dez. 2016
Bearbeitet: per isakson am 3 Dez. 2016
We need to know more to be able to help
  • "string feature vectors from different algos" &nbsp is that just a vector of 262144 numbers?
  • "the dimension of FV are 50 by 262144" &nbsp is that 50 rows by 262144 columns?
  • " is my data too large to be handled?" &nbsp No, I don't think so; the size should not be a problem with Matlab.
  • "would i try another PC?" &nbsp how much physical memory, RAM, do you have? 8GB should be more than enough.
  • "other way to store [read] my text file" &nbsp there are (too) many, see Text Files,Delimited and formatted text files
  • "or mail me" &nbsp the idea of Answer is that others should benefit, i.e we communicate here with the detail needed.
Proposal: Give us a detailed description of the file and upload a small sample. See the paper-clip-button in the tool strip.
maida
maida am 4 Dez. 2016
Bearbeitet: maida am 4 Dez. 2016
  • i have 50 images from five different clases, each image is of size 512 by 512
  • I have to extract feature vector(i-e numberical values e.g HOG, LBP)of each 50 image and save those feature vector in a text file.
  • text file save every image feature vector in a complete row, making 50 rows occupied each with their respective FV.
  • then i have to save that text file in mat file for further use(e.g Apply PCA for feature reduction)but i cant event able to open a text file due size to let alone import them.
KSSV
KSSV am 4 Dez. 2016
Why you want to save into text file and then into mat file? You can straight away save into mat file eh.
maida
maida am 4 Dez. 2016
how to do that?? :/
per isakson
per isakson am 5 Dez. 2016
Bearbeitet: per isakson am 5 Dez. 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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Large Files and Big Data finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 2 Dez. 2016

Bearbeitet:

am 5 Dez. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by