Home > mpt > @polytope > nconstr.m

nconstr

PURPOSE ^

NCONSTR Returns number of constraints that form an H-representation of a polytope

SYNOPSIS ^

function nc = nconstr(P)

DESCRIPTION ^

NCONSTR Returns number of constraints that form an H-representation of a polytope

 nx = nconstr(P)

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
 Returns number of constraints (i.e. rows of the H matrix)

 NOTE: If P is a polytope array, nconstr(P) returns the total number of
 hyperplanes.

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------
 P   - Polytope

 ---------------------------------------------------------------------------
 OUTPUT                                                                                                    
 ---------------------------------------------------------------------------
 nc  - number of constraints for the given polytope P
       (returns a vector of dimensions if P is a polytope array)

 see also DIMENSION, LENGTH

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 30-Mar-2006 10:26:47 by m2html © 2003