['1.1.1.100';'1.1.1.101';'1.1.1.141'] is a char() array, not cellstr or string
Either
>> c=cellstr(s) c = 3×1 cell array '1.1.1.100' '1.1.1.101' '1.1.1.141' >>
or
>> string(c) ans = 3×1 string array "1.1.1.100" "1.1.1.101" "1.1.1.141" >>
['1.1.1.100';'1.1.1.101';'1.1.1.141'] is a char() array, not cellstr or string
Either
>> c=cellstr(s) c = 3×1 cell array '1.1.1.100' '1.1.1.101' '1.1.1.141' >>
or
>> string(c) ans = 3×1 string array "1.1.1.100" "1.1.1.101" "1.1.1.141" >>
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!