Appending a space (' ') to the specified Whitespace characters

Post Reply
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Appending a space (' ') to the specified Whitespace characters

Post by matlab1 »

Appending a space (' ') to the specified Whitespace characters
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Re: Appending a space (' ') to the specified Whitespace characters

Post by matlab1 »

Solution:


TF = isspace(A) returns a logical array TF. If A is a character array or string scalar, then the elements of TF are logical 1 (true) where corresponding characters in A are space characters, and logical 0 (false) elsewhere. isspace recognizes all Unicode® whitespace characters.






For more information,

https://en.wikipedia.org/wiki/Whitespace_character

https://www.mathworks.com/help/matlab/ref/isspace.html
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests