strremoveΒΆ
strremove removes any vector or matrix element that matches the given string ssRemove.
-
svString = strremove(smString)
-
svString = strremove(smString, ssRemove)
Return Value
svString is a string vector without any elements that matches the string given in ssRemove. If all elements of smString identical to ssRemove the functions returns an empty string.
Parameters
-
smString
smString is a string matrix.
-
ssRemove
ssRemove is a scalar string. The string can be empty (
""
). If the function is invoked with one parameter only the default value of ssRemove is an empty string (""
).
Example
* strremove(["Hello", "", "Test"], "")'
Hello
Test
See also
id-1399354