MATLAB Answers

Closest match to a string

12 views (last 30 days)
Wesso on 9 Feb 2019
Commented: Rik on 9 Feb 2019
I need to match two tables based on the name of a company. Each table refers to the company differently. I am wondering if there is a way to match two tables using the closest match possible between the names . For instance
Table A refers to one company as " Storm Ventures International"
Table B refers to the same company as " Storm International(Barbados)Ltd "
Another match would be in Table A " Uglegorsk-Tsement "
in Table B " ZAO Uglegorsk-Tsement "
I am wondering how can I make match the two tables based on the closest match?
  1 Comment
Rik on 9 Feb 2019
You can use a diff tool to compare all combinations. Since it is very non-trivial to write a diff tool, I'm not going to do that. If you find something that needs line by line input, you can put every character on its own line.

Sign in to comment.

Answers (0)


Community Treasure Hunt

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

Start Hunting!

Translated by