Hello Guys. Can you tell me how can I write a code that is like
>> [ida,idb] = ismember('1','1 0 0 1')
but the outpoot i need is
I suppose it can be made with a double loop or smth, but I am looking for a simpler way.