Octave to check the given string is alphanumeric
kodingwindow@kw:~$ octave
...
octave> kw = "Kodingwindow#12"
kw = Kodingwindow#12
octave> isalpha(kw)
ans =

  1  1  1  1  1  1  1  1  1  1  1  1  0  0  0

octave> isalnum(kw)
ans =

  1  1  1  1  1  1  1  1  1  1  1  1  0  1  1

octave> isdigit(kw)
ans =

  0  0  0  0  0  0  0  0  0  0  0  0  0  1  1

octave> isascii(kw)
ans =

  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1

octave> isletter(kw)
ans =

  1  1  1  1  1  1  1  1  1  1  1  1  0  0  0

octave> isupper(kw)
ans =

  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0

octave> islower(kw)
ans =

  0  1  1  1  1  1  1  1  1  1  1  1  0  0  0

octave> isspace(kw)
ans =

  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0

Advertisement