how to common string data in two string celland their indexes

1 回表示 (過去 30 日間)
Muhammad
Muhammad 2021 年 6 月 1 日
編集済み: Jan 2021 年 6 月 1 日
i have two cells
population 235*1 cell
names 332*1 cell
both have string data
i want an other cell which have the common data of both population and names
and an other cell which contain their previous location in names

採用された回答

Jan
Jan 2021 年 6 月 1 日
編集済み: Jan 2021 年 6 月 1 日
[Both, indexPop, indexNames] = intersect(population, names)
Here indexNames is not a cell, but a vector, which is more useful for indexing.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumeric Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by