isstringΒΆ

isstring checks if its argument is a string or a string matrix.

bool = isstring(m)

Return Value

bool is TRUE (1), if the argument is a string or string matrix and FALSE (0), if the argument is of another type.

Parameters

m

m is a scalar, matrix or function.

Example

a = "Hallo"
isstring(a)
     1.0000
isstring(sin)
     0.0000
isstring(1)
     0.0000
isstring(123)
     0.0000

id-1500171