2

I have a cell C with dimensions 1 x 23. All 23 elements of the cell are in the form 3001x1 double.

Now what I want to achieve is:

time  = C{1};
pos   = C{2};
angle = C{3};
...
...

which works fine. However, is there an easier way to achieve this, maybe something like:

[time, pos, angle, ...] = C
Pietair
  • 396
  • 2
  • 8
  • 18

1 Answers1

3

Easiest way is to use comma separated lists

[time, pos, angle, ...] = C{:}
Dan
  • 45,079
  • 17
  • 88
  • 157