Joining Tables and deleting columns
2 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone,
How can I add two tables into a third table and how can I delete columns in a third table.
I have two tables which only contains 1 column of information. However, the information is required to replace data contained under two headings in another table - SecondVID and FirstVID.
How can I take the column data of the two tables and insert it into the third?
5 件のコメント
Peter Perkins
2023 年 4 月 4 日
I'm pretty sure my previous post exactly answered what you've described:
- Find values from one vector in another vector.
- Replace the values in the other vector with something else.
- The something else is text.
回答 (1 件)
Swaraj
2023 年 4 月 4 日
Step 1: Joining two tables
You can join two tables in MATLAB using the “join()” function.
Eg. Table3 = join(table1,table2);
Documentation for “join()”:
Step 2: Removing a column from the third table.
You can use “removevars” function.
Documentation for “removevars” function.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!