How do I match corresponding rows of class labels to data
Show older comments
I have 838 by 400 matrix as my data, I also have a 275 by 2 file which contains my class labels but they are not organised to match the exact sample rows of the data, I need help with a code to match both so that the sample rows in the data matches the rows in the class labels. Any row that has no corresponding class lebels can be deleted. I need to end up with 275 by 400 data.
Note: The file with the data and the file with the class labels both have similar sample ID column to help idenify the sample rows.
Kinldy let me know if you need more clarification
Thank You
2 Comments
Image Analyst
on 9 Jul 2022
Of course we do - you didn't attach any data or screenshots or images or anything.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
NCA
on 11 Jul 2022
Accepted Answer
More Answers (0)
Categories
Find more on Logical 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!