help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Distinguishing between purely numerical data and alphanumeric data


From: Madhusudan Singh
Subject: Distinguishing between purely numerical data and alphanumeric data
Date: Mon, 5 Sep 2005 10:58:39 -0400
User-agent: KMail/1.7.2

Hi

I have the following two lines in a data file :

VB= -5 to 5 in 1 step
1 -10 -5 3.896E-11 5E-14 -7.841E-11 0.557582 779.2

I need to tell them apart somehow. I tried :

all/any (isalpha(string)) % String read in via fgets()

Both return the same result (thanks to the presence of "E" characters in the 
line containing just numbers)

How do I disambiguate between the two ?

Thanks.



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]