I have directory names that end in '0.0100'. I want to be able to skip certain directories by comparing the substring '0.0100' to the directory name. How can I do this?
Prashant Kumar answered .
2025-11-20
>> smallSubstring = '0.0100'; >> largeString1 = 'Item0.0100'; >> largeString2 = 'Item0.0101'; >> contains(largeString1, smallSubstring) ans = logical 1 >> contains(largeString2, smallSubstring) ans = logical 0