Name

search_cte — find the indexes of constant colums

CALLING SEQUENCE

[xlag]=search_cte(x,n,init)

PARAMETERS

Input

• x = a (n x k) real matrix

Output

• indcte= a (p x 1) vector of integers

DESCRIPTION

Finds the indexes of the constant colums in a matrix.

EXAMPLE


search_cte([grand(15,2,'nor',0,1) ones(15,1)])

 

Gives 3. 

 



               

AUTHOR

Eric Dubois 2005