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.(adsbygoogle = window.adsbygoogle || []).push({});

The thing is, I can't figure out how to make my function accept the function I'm trying to input into it. I was told I could use

feval ( function-name , x-value )

to find the value of a function at a particular x value, but I could not, for the life of me, figure out how I can make feval recognize functions. I tried passing strings, names of other simple functions I made, and just about everything I could think of. Nothing works.

Then I tried looking online, and websites and MATLAB's built-in help confused me even more by telling me stuff about "function handles" and "@" signs.

So could someone please explain to me, in the simplest language possible, how feval works? I would be very, very grateful.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# How does feval work in MATLAB?

Loading...

Similar Threads - does feval MATLAB | Date |
---|---|

How does the CH-47 Chinook balance itself? | Jan 22, 2018 |

Air does not intervene with radiation | Jan 20, 2018 |

How does one make a resistojet rocket? | Dec 8, 2017 |

Terahertz scanner: does it work? | May 22, 2017 |

3DES or RSA implementation for optics in MATLAB | Jun 16, 2016 |

**Physics Forums - The Fusion of Science and Community**