【发布时间】:2013-12-16 02:54:18
【问题描述】:
下面代码中的匿名函数看不懂:
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 参数也有匿名函数。
谁能给点提示?
【问题讨论】:
-
我不太清楚 feval 使用@fucntion 作为它的参数