Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by