The data in your question contains what appears to be a cell array of strings (or character arrays) where each string represents a binary number. If your question is how to find the position of each 1 within each string,
onePos = cellfun(@(s)strfind(s,'1'), val, 'UniformOutput', false);
This will produce a cell array of indices. onePos{n} lists the positions of '1's within the nth string of 'val'.
For example, the first row has no 1s so that cell element is empty
onePos{1}
ans =
[]
The 6th row has 1s in the 12th, 13th, and 15th character
onePos{6}
ans =
12 13 15