MATLAB Answers

How to write all data of a cell array into one big list?

20 views (last 30 days)
Marcus W
Marcus W on 12 Dec 2018
Commented: Marcus W on 13 Dec 2018
Hello,
I'm searching for a function or fast way to write all data of a cell array into one big list.
I receive with the function "rangesearch" a cell array with different content like this:
1x17 double
1x14 double
1x11 double
1x21 double
Now I want all this data in one big list of 1x63 elements.
Now I achieve this with a for-loop, but is there an existing function or faster way than mine?
Thanks in advance

  0 Comments

Sign in to comment.

Accepted Answer

Daniele Mascali
Daniele Mascali on 12 Dec 2018
If A is your cell array, you might try:
[A{:}]

  1 Comment

Marcus W
Marcus W on 13 Dec 2018
Great!
That was exactly what I was searching for. Thanks a lot!

Sign in to comment.

More Answers (0)


Translated by