I AM TRYING TO FIND ALL CELLS IN A WICH EQUAL B THE CODE :

`for j=1:length(defs) % loop over Mdr of defib`

querymdr=data2(:,1); % "A" save MDR numbers

y=alldata(:,1); % "B"

idx= find(y==querymdr); % FIND ALL CELLS WHICH IS EQUAL

it gives me an error in

`idx= find(y==querymdr);`

what was i write wrong?

## Best Answer