Home > vbmeg > functions > tool_box > dynamics_movie > test_fig > basic_tool > mat_to_cell.m

mat_to_cell

PURPOSE ^

SYNOPSIS ^

function Vc = mat_to_cell(V,Nc)

DESCRIPTION ^

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005