Evaluation of function handler

3 visualizaciones (últimos 30 días)
mosayyeb
mosayyeb el 4 de Dic. de 2014
Respondida: Andrei Bobrov el 18 de Oct. de 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?

Respuestas (1)

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

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by