Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • $\begingroup$ Although, I'm not sure why, ToExpression["{" <> StringReplace[str, "\t" -> ", "] <> "}"] seems to be a tad faster than both StringSplit and StringToDouble methods. $\endgroup$ Commented Sep 2, 2012 at 23:06
  • $\begingroup$ @kale probably because you are only searching for /t, and not for the other possible string separators Whitespace is taken to include spaces, tabs and newlines. $\endgroup$ Commented Sep 2, 2012 at 23:09
  • $\begingroup$ @kale, not clearly faster than StringToDouble in my test. Also probably because there's only one string to expression conversion there $\endgroup$ Commented Sep 2, 2012 at 23:10
  • $\begingroup$ @Rojo, Yeah, we're not talking much, but consistently a little faster on my machine. $\endgroup$ Commented Sep 2, 2012 at 23:11