Create Root Function In Matlab