Question: How to convert a Vector of strings to a Vector of floats

One of those vexing things that should be easy:

I am reading in a data file using ImportMatrix. Since the file has one column with texual data I cannot use datatype=float since that bombs. I >can< ImportMatrix with datatype=string or anything.

I then extract columns using the appropriate command and want to do something numeric with them (only with those columns that have correct floating point numbers). That fails since my data are now not floats (even when using anything). Convert does not work (fails or does nothing). I tried sscanf but besides not creating a float it also seems extraordinarily slow (my Vector length is on th eorder of 10s of thousands).

This must be simple. What am I missing??

Mac Dude.

Please Wait...