i have a cell array cA and vector V with values
cA = {[11,21,3;14,5,63], [11,22], [33;95;66;7]};V = [14 22 33 66];
i wanted to find which all values in V are there in cA and its position
output = { [ 0 0 0 1 0 0], [1 2], [3 0 4 0] }
matrix manipulation
cA = {[11,21,3;14,5,63], [11,22], [33;95;66;7]};V = [14 22 33 66];
output = { [ 0 0 0 1 0 0], [1 2], [3 0 4 0] }
Best Answer