For people who use CSV, it would be helpful to know examples of elements that caused this error---I don't use CSV myself much, but it seems strange that it wouldn't be able to import a Float32 array.
If you're going binary, HDF5 would be a more portable choice. --Tim On Wednesday, October 22, 2014 05:55:39 AM Luca Rossetto wrote: > I was able to generate an Array{Any, 2} or an Array{String, 2} but not an > Array{Float32, 2}. convert() always failed because there was apparently at > least one element in the array which caused a conversion error. > > I now solved the problem using an entirely different data encoding. When I > export the values as raw byte data from my other program, i managed to > import is using: > f = open(filename) > matrix = read(f, Float32, a * a) > matrix = reshape(matrix a, a) > > Nevertheless, is there an efficient way to read a Array{FloatingPoint, 2} > from a CSV file? > > Am Mittwoch, 22. Oktober 2014 14:42:52 UTC+2 schrieb Andreas Noack: > > What type had the "resulting object"? > > > > Med venlig hilsen > > > > Andreas Noack > > > > 2014-10-22 7:27 GMT-04:00 Luca Rossetto <l.ros...@gmail.com <javascript:>> > > > >> Hi > >> > >> I have a (java) program which generates large amounts of numerical data > >> in matrix form (square matrix, ~10'000 x 10'000) on which I want to > >> perform > >> some numerical analysis. Currently, I'm exporting the matrix data as CSV > >> but I could change that to a different format if necessary. I tried > >> importing such a file using readcsv, readdlm and readtable but was unable > >> to convert the resulting object to the form Array{Float32, 2}. Any ideas > >> on > >> what I can do?