i have two lists lets say a=[1 2 3 ] and b =[1 2 3 4 5 ] and i want to compare each element of ' a ' with all elements of "b" it means that 1 is compared with whole list "b" then 2 is compared then 3 and if the element of "a" is member of "b" then output "a"else 0.
MATLAB: How to compare two lists
compare
Related Question
- Write a function called integerize that takes as its input a matrix A of integers of type double, and returns the name of the “smallest” signed integer class to which A can be converted without loss of information.
- Why pixels values are unaltered even though after applying double
- Create a Matrix with multiple repeated strings
- Help on converting dubble to uint8
- Transforming matrices in a sophisticated way
- How to make a function that return smallest unsigned integer class of a matrix
Best Answer