From bug-request at octave dot org Wed Dec 7 14:07:10 2005 Subject: str2num.m can't handle LF character. From: "Frederick (Rick) A Niles" To: bug at octave dot org Date: Wed, 7 Dec 2005 14:03:35 -0600 I can't believe no one has come across this one. > str2num('0\r') ans = [](0x0) The problem is that str2num.m is implemented using the eval function and the line feed character seems to confuse that we're asking to be eval'd Anyway, seems like this would be really common when trying to read in data from Windows/DOS sources that have "/r" in the line termination. This there a easy hack to the str2num.m that would make this work for me? Should this be fixed in the distro? I'm running 2.1.72. Thanks, Rick Niles. ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------