Merging elements in cell array using common value
Show older comments
I have a 110x6 cell containing information about chemicals in different states, that is currently organised by state (sol/liq). I am looking to merge the elements that belong to the same chemicals, however every chemical does not have two states.

So for example, I would like to merge row 1 and 2 into one row (as they have the same value in column 2 and 3), so that I have 1x703 doubles in columns 4,5, and 6.
I have been trying to do this by adapting the method explained here: https://uk.mathworks.com/matlabcentral/answers/365490-merging-elements-into-a-single-cell-array
But I am not having much luck.
I have also been trying to achieve something similar using a structure instead of a cell with little success.
Accepted Answer
More Answers (0)
Categories
Find more on Chemistry 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!