matlab forward intersection