我不明白,在下面的代码匿名函数:使用匿名函数与feval
x = 0.25 * randn(3, 1);
y = 0.25 * randn(3, 1);
h = 0.1*randn(3, 1);
interpolate = @(x, y, h, x_new, y_new) ...
feval(@(int) int(x_new, y_new), ...
TriScatteredInterp([-1; -1; 1; 1; x], ...
[-1; 1; -1; 1; y], ...
[0; 0; 0; 0; h]));
我有匿名函数和feval
功能有一定的了解,但我找遍了MATLAB文档和没有找到一个使用几个@符号的例子。另外feval
参数具有匿名功能。
任何人都可以提供一些提示吗?
你读过http://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html吗? –
我不是很清楚feval使用@fucntion作为其参数 – user1279988