find patterns in nominal arrays

Hello everyone!!!
I have an array with two columns and nominal values.
[N N]
[N N]
[N S]
[S N]
[N N]
[N N]
[N N]
[N S]
[S N]
[N N]
I want to find the pattern
[N N]
[N S]
[S N]
and merge the cells into one [N N]
How can I do it?
Thank you!!!
Vanessa

댓글 수: 3

José-Luis
José-Luis 2017년 8월 3일
How are your data stored?
Vanessa
Vanessa 2017년 8월 3일
it's a nominal array
José-Luis
José-Luis 2017년 8월 3일
Learned something today. Didn't know this data type existed. I don't have the required toolboxes so I can't play around with it.
Your question is pretty straightforward for an array of characters.
How do you get your nominal array?

답변 (1개)

KSSV
KSSV 2017년 8월 3일
편집: KSSV 2017년 8월 3일

0 개 추천

Read about ismember...

이 질문은 마감되었습니다.

태그

질문:

2017년 8월 3일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by