MATLAB Answers

mosayyeb
0

Evaluation of function handler

Asked by mosayyeb
on 4 Dec 2014
Latest activity Answered by Andrei Bobrov
on 18 Oct 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?

  0 Comments

Sign in to comment.

1 Answer

Answer by Andrei Bobrov
on 18 Oct 2019

F = F(x,y)x + y;
FF = @(x)F(x,2);

  0 Comments

Sign in to comment.