Home > matgraph > @partition > parts.m

parts

PURPOSE ^

parts(p) --- returns the parts of p in a cell array

SYNOPSIS ^

function cells = parts(p)

DESCRIPTION ^

 parts(p) --- returns the parts of p in a cell array

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function cells = parts(p)
0002 % parts(p) --- returns the parts of p in a cell array
0003 
0004 [m,n] = size(p.array);
0005 
0006 cells = cell(1,m);
0007 
0008 for k=1:m
0009     cells{k} = find(p.array(m+1-k,:));
0010 end

Generated on Thu 13-Mar-2008 14:23:52 by m2html © 2003