Turn cell array of cell arrays into single column of data
10 views (last 30 days)
Show older comments
Cab Callaway
on 10 Jul 2019
Commented: Cab Callaway
on 11 Jul 2019
I have a 46x1 cell array, where each cell is a different dimension (but all of the form ?x1).
For example, the first few cells are:
17x1 cell
11x1 cell
25x1 cell
etc...
Each of these cells is just a bunch of strings
I want to basically "flatten this" and instead have an array with all 17 strings from the first cell, then the next 11, then the 25, so on and so forth.
There must be a simple way to do this?
Alternatively, this question is to solve a bigger problem of comparing lists of signals. I could do setdiff on them easily if it were a single dimension, but I do not know how to do it another way.
Any help would be appreciated, thank you.
2 Comments
Image Analyst
on 10 Jul 2019
Attach your cell array in a .mat file so people can play around with it and try things.
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Cell Arrays 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!