Ball and beam matlab code. .