Group elements in a cell in matlab -
i have cell size of 1x142884 (i have 142884 elements in single cell) , interested group these elements in cell of 36 each. must have 142884 / 36 = 3969
cells. can me group cells each cell consist of 36 cells.
edit
here code
yaml_file = 'feature000000'; yamlstruct = readyaml(yaml_file); feature0 = yamlstruct.features1; blocks_per_img = yamlstruct.blockperimg;
you can download feature000000 file here
use reshape follows:
b = reshape(c,36,3969)
you'll end cell b
of size 36×3969, every row 1 of 36 items length 3969.
Comments
Post a Comment