Clear Filters
Clear Filters

Is it possible to enter a mathematical expression/function as an input to a user defined function

1 view (last 30 days)
Forexamples something in the lines of
function return_value = function_name( (f(x), 2nd paramaeter, 3rd paramter))
where f(x) could be a polynomial, trig, exponential function etc.

Accepted Answer

Matt J
Matt J on 28 Nov 2013
Yes, it's what function handles are meant for.

More Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!