Evaluation of function handler

4 次查看(过去 30 天)
mosayyeb
mosayyeb 2014-12-4
I have function handler with e.g. 2 variable (F=@(x,y) x+y. If I want to add value to one of variables (e.g. y=2), and I need explicit form of function handle (e.i. F=@(x) x+2). what should I do?

回答(1 个)

Andrei Bobrov
Andrei Bobrov 2019-10-18
F = F(x,y)x + y;
FF = @(x)F(x,2);

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by