MATLAB: How i can reading character letter by letter

MATLABmatrix

i have this variable x='123.56.128.117' as a char and i want to save each part that divided by '.' in a different variable. the problem is the size of each part is not fixed that why i face a problem. could you help me pls is there a function that can read the character and when it find '.' save or return size

Best Answer

You can use regexp:
>> X = regexp('123.56.128.117','\.','split')
X =
123
56
128
117