I have still not clear what repmat does... Will ask Paolo.