Evaluation of function handler

1 回表示 (過去 30 日間)
mosayyeb
mosayyeb 2014 年 12 月 4 日
回答済み: Andrei Bobrov 2019 年 10 月 18 日
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 Center および File ExchangeProbability Distributions and Hypothesis Tests についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by