function as arguement in matlab

조회 수: 1 (최근 30일)
nguyễn gia bảo
nguyễn gia bảo 2019년 4월 16일
댓글: Stephen23 2019년 4월 16일
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

답변 (1개)

KSSV
KSSV 2019년 4월 16일
function c = test(fun,a,b)
c = fun(a,b)
Call
a = rand ;
b = rand ;
c = test(@tan2d,a,b)

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by