Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português -

Please note that the recommended version of Scilab is 6.0.2. This page might be outdated.
See the recommended documentation of this function

Scilab manual >> Strings > isdigit

isdigit

文字列の文字が0と9の間の数値であるかどうかを調べる

呼び出し手順

res = isdigit(str)

パラメータ

str

文字列.

res

論理値の行列.

説明

res = isdigit(str) は str と同じ大きさの配列を返します. 配列の要素は,対応する str の要素が数値の場合に論理値%T (TRUE), それ以外の場合に論理値%F (FALSE)となります.

s = 'A1,B2,C3';
isdigit(s)
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:25:13 CET 2011