Matlab toolbox is available at https://code.google.com/p/bdca/ . You may also refer to the paper : Mads Dyrholm, Christoforos Christoforou, Lucas C. Parra,"Bilinear Discriminant Component Analysis",Journal of Machine Learning Research 8 (2007) 1097-1111 Submitted 9/06; Revised 2/07; Published 5/07