isprint
Returns a boolean, logical matrix or cell array, whose values are true if the corresponding elements of the input are printable characters including spaces and false otherwise.
Syntax
R = isprint(s)
Inputs
- s
- Type: Any finite cell | mat | scalar | string
Outputs
- R
- Type: logical | mat | cell
Examples
String input:
R = isprint('Hello!')
R = [Matrix] 1 x 6
1 1 1 1 1 1
Cell array input:
R = isprint({23, 'Hello world!'})
R =
{
[1,1] 0
[1,2] [Matrix] 1 x 12
1 1 1 1 1 1 1 1 1 1 1 1
}