read data from csv file & fast processing
Show older comments
i have a data like which is read from csv file like
10;20;2;3;45;56;87;56;988;434;10;20;2;3;45;56;87;56;988;434
i have 9lakhs of data like this what is best way to separate by ; & form a matrix
because now it is consuming to much of time
Thanks in advance
12 Comments
Jan
on 7 Nov 2012
What does "9lakhs" mean? What exactly is time consuming in your program?
shaz
on 7 Nov 2012
Jim O'Doherty
on 7 Nov 2012
What command are you using to read your data in? You could just use the uiimport wizard, or importdata command specifying ";" as a delimiter
Jan
on 7 Nov 2012
@shaz: "9lakhs row of data" is not helpful for me, because I cannot imagine what a "9lakhs" is. I even do not know any term which starts with a number. It would be helpful if you use English words only.
I ask again: What is the time-consuming part you want to get fixed?
shaz
on 7 Nov 2012
Dear shaz, I'm not sure if you are kidding. While I do not know "9lakhs", I even do not know the unnumbered "lakhs" also. Please, could somebody enlighten me what this term means? Perhaps "lots"?
Please show us the lines of code, which consume more time than you expect. A text description of your program does not allow to improve your code.
per isakson
on 7 Nov 2012
Edited: per isakson
on 7 Nov 2012
@Jan: "A lakh is a unit in the South Asian numbering system equal to one hundred thousand. [...] In Indian English the word is used both as an attributive and non-attributive noun, and with either a marked ("-s") or unmarked plural" - wiki informed me.
per isakson
on 7 Nov 2012
@shaz: is the file free from decimal separators?
shaz
on 8 Nov 2012
Edited: Walter Roberson
on 8 Nov 2012
@per: Thanks! I'm surprised, that shaz does not want to explain this by himself. Perhaps he or she is not interested in my answers.
@shaz: Please post comments to the already suggested solutions, such that we can knwo, if the problem is solved or how the suggestion could be improved.
shaz
on 8 Nov 2012
Edited: Walter Roberson
on 8 Nov 2012
Jan
on 27 Nov 2012
@shaz: Although it looks obvious, that you neither read the comments nor care about them: Please stop using the term "lakh" without any further explanations, because it is not part of the English language such that it might confuse the readers. It is very friendly that Per explained this, but this has been your your turn actually.
Can you imagine the effects, when you do not care about questions for clarifications?
Accepted Answer
More Answers (0)
Categories
Find more on Data Import and Analysis 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!