フィルターのクリア

I have two different ground truth datasets in my workspace

1 回表示 (過去 30 日間)
BASHIR AHMAD RASHEEDY
BASHIR AHMAD RASHEEDY 2023 年 10 月 25 日
回答済み: Venu 2023 年 12 月 13 日
Greetings, everyone,
I have a question regarding the combination of two distinct ground truth datasets, each with different classes. I'm looking for a way to merge them into a single file for training data. Which function or method can be utilized for this purpose? Your assistance is greatly appreciated.
Thank you in advance.

回答 (1 件)

Venu
Venu 2023 年 12 月 13 日
To merge two distinct ground truth datasets with different classes into a single file for training data, you can use either "vertcat" or "outerjoin" depending on the structure of your datasets.
If the datasets have the same columns and you simply want to stack the rows together, you can use "vertcat":
combinedData = vertcat(dataset1, dataset2);
If the datasets have different columns and you need to align them based on a common key or index, you can use "outerjoin":
combinedData = outerjoin(dataset1, dataset2, 'MergeKeys', true);
Find the documentation below for reference.
Hope this helps!

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by