Hello,
I have a cell array 'y2a' of size 1×128 with each cell containing another cell array of size 1×17(for eg: y2a{1,1} is a 1×17 cell array). I have to multiply the data in each sub-cell (ie; y2a{1,1} or y2a{1,2}…etc)using the following formula
Example:
for cells 1-7 S=(celldata)*(2^(7-i)) for cells 8-16 S=(celldata)*(2^(7-i))
where 'i' is the position of the cell.Since there are only 17 subcells and we use only 16 of them the value of i varies between (1,16).I have included an image of the cell array and the subcell array.
From the image we can clearly see that each cell in y2a have a 1×17 cell in itself. I want to perform the above function for all the subcells present in each y2a(i,i). This I need to do for all the 128 cells present. Is there any inbuilt function in matlab to perform this action? If not how do I do it. Please help. Thanks in advance.
Best Answer