Ahh, I think I got it. I passed the name of the mathematical function as a string to the function I wrote, and somehow it works.
Still not sure why it works, but thanks everyone for your help.
But I have something like this
function returnvalue = bisectionfunc ( function_name , upper_bound, lower_bound )
blah blah blah
then
feval ( function_name , value_of_variable );
What do I pass into bisectionfunc as "function_name"? I'd like that to be the function on which I'm performing...
I'm completely new at MATLAB, having just started using it about a week ago. In an assignment of mine, I have to make a function that does bisection. So I pass a function, along with a set of bounds, to the function I wrote.
The thing is, I can't figure out how to make my function accept the...