one function-handle for one function-handle f with g = doublethefun(f) as separate function file
显示 更早的评论
Hi all,
I need your help.
here is a question: function doublethefun should be defined as separate function file and should be so defined like this:
g = doublethefun(f)
should be one function-handle for one function-handle f and
g(x) = 2*f(x)
The function g should represent also the double of f
I'm quite new in this field and don't know how to do it.
My try looks like this:
function f = doublethefun(ff, x)
f= 2*ff(x);
end
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!