function as arguement in matlab

1 visualización (últimos 30 días)
nguyễn gia bảo
nguyễn gia bảo el 16 de Abr. de 2019
Comentada: Stephen23 el 16 de Abr. de 2019
Hi evyryone, can anybody please explain how should i do this question, i have no idea what it means: write a function that takes as an arguement another function name or handle and a value of a of x and returns the derivative evaluated at x = a
thanks, i really appreciate your help

Respuestas (1)

KSSV
KSSV el 16 de Abr. de 2019
function c = test(fun,a,b)
c = fun(a,b)
Call
a = rand ;
b = rand ;
c = test(@tan2d,a,b)

Categorías

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

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by