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] } `

Skip to content# MATLAB: Find values in vector present in cell array

###### Related Question

matrix manipulation

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] } `

- General code for sorting inside cell
- List of IDs to matrix of indexes
- Identifying the repeated rows in a matrix and comparing them to another matrix
- I’ve a matrix of 6×4 and i want to count the rows how many times it occur in a matrix
- How to create an array with repeating values of a vector
- Ismember function — return all indexes, not just lowest

## Best Answer