[6db11f]: comp / vect2cell.m  Maximize  Restore  History

Download this file

7 lines (4 with data), 164 Bytes

1
2
3
4
5
function c = vect2cell(x,idx)
idxEnd = cumsum(idx(:));
idxStart = [1;1+idxEnd(1:end-1)];
c = arrayfun(@(idS,idE) x(idS:idE,:),idxStart,idxEnd,'UniformOutput',0);

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks