Octave to check the given string is alphanumeric
godarda@gd:~$ octave ... octave> gd = "GoDarda#12" gd = GoDarda#12 octave> isalpha(gd) ans = 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 octave> isalnum(gd) ans = 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 octave> isdigit(gd) ans = 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 octave> isascii(gd) ans = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 octave> isletter(gd) ans = 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 octave> isupper(gd) ans = 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 octave> islower(gd) ans = 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0 octave> isspace(gd) ans = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Comments and Reactions