isgraph

Returns a boolean, logical matrix or cell array, whose values are true if the corresponding elements of the input are printable characters excluding spaces and false otherwise.

Syntax

R = isgraph(s)

Inputs

s
Type: Any finite cell | mat | scalar | string

Outputs

R
Type: logical | mat | cell

Examples

String input:
R = isgraph('Hello!')
R = [Matrix] 1 x 6
1  1  1  1  1  1
Cell array input:
R = isgraph({23, 'Hello world!'})
R =
{
  [1,1] 0
  [1,2] [Matrix] 1 x 12
  1  1  1  1  1  0  1  1  1  1  1  1
}