Evaluation of function handler

1 visualizzazione (ultimi 30 giorni)
mosayyeb
mosayyeb il 4 Dic 2014
Risposto: Andrei Bobrov il 18 Ott 2019
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?

Risposte (1)

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

Categorie

Scopri di più su Graphics Object Programming in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by