[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: expressing x as a real number
From: |
Michael Goffioul |
Subject: |
Re: expressing x as a real number |
Date: |
Sat, 26 Nov 2011 23:03:29 +0000 |
On Sat, Nov 26, 2011 at 5:29 PM, kacheep <address@hidden> wrote:
> I want to write a code that does something if x is a real number and does
> something else if its not (like if it was a letter or a symbol).
> Is there a built in function on Octave that will help?
> If not, what is a function I could use in order to tell me if x is a number
> or not?
There's a couple of isXXX function that should do what you want. Have
a look at functions like:
isnumeric
ischar
iscell
...
Michael.