How to parcours data?

3 views (last 30 days)
Mira le
Mira le on 11 Feb 2020
Answered: Bhaskar R on 11 Feb 2020
I have a cell array SI
[1 31 36]
[1 31]
2
[1 67]
[1 41]
[1 31 36 5 90]
[1 31 36 23 90]
[1 31 36 38 94]
[1 36 41 79 67]
[1 31 36 24 90 38]
[1 31 41 38 90 23]
and another database called T
like this
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74
1 3 5 7 9 12 13 15 17 19 21 23 25 27 29 31 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74
1 3 5 7 9 12 13 16 17 19 21 23 25 27 29 31 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74
1 3 5 7 9 11 13 15 17 20 21 23 25 27 29 31 34 36 38 40 42 44 47 48 50 52 54 56 58 60 62 64 66 68 70 72 74
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 34 36 38 40 42 44 46 48 51 52 54 56 58 60 62 64 66 68 70 72 74
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 34 36 38 40 42 44 46 48 51 52 54 56 5
I want to check if all values of SI contains in each line of T
How can I do that?
please help me!

Answers (1)

Bhaskar R
Bhaskar R on 11 Feb 2020
You can use ismember function to find as you require

Products


Release

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!