ImageAnalyst <imageanalyst@mailinator.com> wrote in message <a20dfd24-be2a-45d3-a869-42885fbc3a80@i18g2000yqn.googlegroups.com>...> Well, intercept is not a function in the Symbolic Math Toolbox (http://> www.mathworks.com/help/toolbox/symbolic/bqs6eui.html#I)> Where did you get that code? Is a custom-written function? Can you> use polyfit and polyval instead?

Its a custom written function. I had just wanted to find the intercept between the two equations and have the while function iterate until a solution is found.