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 CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by