Remove leading and trailing white space from string
removes the leading and trailing whitespace characters from the string
newStr = strtrim(
strtrim operator is not supported in Stateflow® charts that use C as the action language.
Remove Leading and Trailing Spaces from String
Remove the leading and trailing spaces and return the string
str = " Hello, world! ";
newStr = strtrim(str);
str — Input string
Input string, specified as a string scalar. Enclose literal strings with double quotes.
This operator does not support the use of Stateflow structure fields or messages. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.
Introduced in R2021b