- define a function handle, or
- define a string (in MATLAB syntax) and convert this using str2func.
Info
This question is closed. Reopen it to edit or answer.
Working with inputs in functions
2 views (last 30 days)
Show older comments
I have got a problem. I need to code a bisection program in Matlab but I need to make it useful for any mathematical function the user wants. Does anyone know how to write a code without defining the mathematical function (leaving the option for the user) on which the program will work on?
2 Comments
Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!