Merge rows with similar names
Mostra commenti meno recenti
Hi,
I have a table consisting of ten columns. In the first column, each row has a unique name. However, many rows have the same starting four letters. I would like to merge the rows with the same starting letters, and perform some calculations based on these rows.
Thanks in advance!
3 Commenti
What does "merge" mean: do you want to sum values, or take the average, or the mode, or concatenate them into vectors?
Why do you specifically need to "merge" the rows, from what you describe it sounds like you should probably process your data using the standard table methods:
Vlatko Milic
il 22 Ott 2021
Image Analyst
il 22 Ott 2021
@Vlatko Milic, you keep forgetting to attach your data in a .mat file with the paperclip icon. Here's another chance to read the posting guidelines:
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!