|
Hi,
I have a 6x2 cell array like this:
[ 27.5291] [1]
[ 0] [2]
[1x2 double] [3]
[1x2 double] [4]
[ -4.5140] [5]
[ -30.8593] [6]
I have different sized vectors in some of the cell rows [1x2 double] in this case. I want to reshape the data so that it is in the form:
[ 27.5291] [1]
[ 0] [2]
[1x1 double] [3]
[1x1 double] [3]
[1x1 double] [4]
[1x1 double] [4]
[ -4.5140] [5]
[ -30.8593] [6]
Basically just expanding the differently sized vectors. The size of these longer vectors can be arbitrary and their positions within the array are not known in advance. Can anyone suggest something please? Thanks very much.
|