MATLAB/OCTAVE Extracting elements from different sized vectors in a cell array

后端 未结 5 636
旧巷少年郎
旧巷少年郎 2021-01-13 21:40

I have a simple question but I can\'t figure it out or find it anywhere. I have a cell array where c{1} is a vector and c{2} is a vector but of different lengths, up to c{i

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 22:24

    You can padding each cell with zeros, and align the lengths to the longest cell vector. It is done in a loop by iterating each cell vector.

提交回复
热议问题