How to parcours data?

조회 수: 3(최근 30일)
Mira le
Mira le 2020년 2월 11일
답변: Bhaskar R 2020년 2월 11일
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!

답변(1개)

Bhaskar R
Bhaskar R 2020년 2월 11일
You can use ismember function to find as you require

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by