Problems with intersect function

A={'LA1';'LA2';'LA3';'LA4';'LA5';'LA6';'LA7';'LA8';'LA9';'LA10';'LA11'};
B={'LA1';'LA2';'LA3';'LA10';'LA11';'LA12';'LAH1'};
intersect(A,B, 'stable')
When I use intersect, I get this error:
Capture.PNG

댓글 수: 1

work for me (R2019B)
A={'LA1';'LA2';'LA3';'LA4';'LA5';'LA6';'LA7';'LA8';'LA9';'LA10';'LA11'};
B={'LA1';'LA2';'LA3';'LA10';'LA11';'LA12';'LAH1'};
intersect(A,B, 'stable')
ans =
5×1 cell array
{'LA1' }
{'LA2' }
{'LA3' }
{'LA10'}
{'LA11'}

댓글을 달려면 로그인하십시오.

답변 (1개)

Divya Yerraguntla
Divya Yerraguntla 2019년 9월 26일

0 개 추천

Hi Diana,
Hope it helps!

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2019년 9월 19일

답변:

2019년 9월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by