Evaluation of function handler

2 vues (au cours des 30 derniers jours)
mosayyeb
mosayyeb le 4 Déc 2014
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?

Réponses (1)

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

Catégories

En savoir plus sur Probability Distributions and Hypothesis Tests dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by