Home > mpt > @polytope > size.m

size

PURPOSE ^

SIZE Returns size of the given polytope object

SYNOPSIS ^

function [nx,ny] = size(P,a)

DESCRIPTION ^

SIZE Returns size of the given polytope object

 [nx,ny]=size(P,a)

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------

 [NX,NY] = SIZE(P)

 If P is a single polytope, NX and NY will be both 1

 If P is an array of polytopes, NY contains number of element in the
   array. NX will be always 1.

 NOTE: In order to access number of constraints and dimension of P,
       please use NCONSTR and DIMENSION respectively.

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------
 P      - polytope (or a polytope array)
 a      - index

 ---------------------------------------------------------------------------
 OUTPUT                                                                                                    
 ---------------------------------------------------------------------------
 nx     - is 1 always
 ny     - number of elements in P (i.e. length(P))

 see also LENGTH, DIMENSION, NCONSTR

CROSS-REFERENCE INFORMATION ^

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