Problems with intersect function

3 visualizaciones (últimos 30 días)
Diana
Diana el 19 de Sept. de 2019
Respondida: Divya Yerraguntla el 26 de Sept. de 2019
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 comentario
Bruno Luong
Bruno Luong el 19 de Sept. de 2019
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'}

Iniciar sesión para comentar.

Respuestas (1)

Divya Yerraguntla
Divya Yerraguntla el 26 de Sept. de 2019
Hi Diana,
Hope it helps!

Categorías

Más información sobre Dictionaries en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by