Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function Vc = mat_to_cell(V,Nc) 0002 % 0003 % Copyright (C) 2011, ATR All Rights Reserved. 0004 % License : New BSD License(see VBMEG_LICENSE.txt) 0005 0006 NC = length(Nc); 0007 Vc = cell(NC,1); 0008 jst = 0; 0009 0010 for n=1:NC 0011 j1 = jst+1; 0012 j2 = jst+Nc(n); 0013 Vc{n} = V(j1:j2,:); 0014 jst = jst + Nc(n); 0015 end 0016