Matching the two columns of two different tables and to combine the common values in second table.

2 views (last 30 days)
I want to match two columns of different tables. One table has one column with a "station code" and other bale has 5 columns in which the first column has "station code". I want to print the final result with 5 column table with single and commmon station code.
Thank you.

Accepted Answer

Kevin Holly
Kevin Holly on 18 Aug 2022
Edited: Kevin Holly on 18 Aug 2022
You can use innerjoin or join. See Join Tables.
Ali on 19 Aug 2022
Thi is compeletely correct but as I have the station codes in one table and the other has also the station codes with station name, latitute, longitude and elevation.
I want to match the station codes and those which are common to print with their respective station name, latitude, longitude and elevation.
Thank you

Sign in to comment.

More Answers (0)


Find more on Tables in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!