Hello, I am quite new user of Matlab and searched for solution for my problem, but without success. I have table with 2 variables (different reoccurring Elements, element State). There are 72 different elements with 2929 occurrences. (2929×2 table) Example:
I want to regroup my tall table to wide table with unique element numbers as row group and all element states as variables. Example:
I have tried unstack function, which does the grouping/conversion, but variables (states) will be as sum or mean of different states not different values. (I got 1×72 table, but it should be 200x72table) I also tried filtering out unique results of elements and joining tables, but problem was that number of states differ within elements (one Element has 200 different States, but other only 2).
I know this is simple issue, but I just don't have any idea.
Sander
Best Answer