Turn cell array of cell arrays into single column of data

10 views (last 30 days)
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
Image Analyst on 10 Jul 2019
Attach your cell array in a .mat file so people can play around with it and try things.

Sign in to comment.

Accepted Answer

Cab Callaway
Cab Callaway on 10 Jul 2019
I was able to easily solve this problem with the help of this beatiful script here!

More Answers (0)

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!