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 件のコメント

Bruno Luong
Bruno Luong 2019 年 9 月 19 日
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!

カテゴリ

タグ

質問済み:

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