《函数句柄实际上提供了一种间接调用函数的方法》
创建函数句柄需要用到操作符@
创建函数句柄的一般语法如下所示:
fhandle = @function_filename
例如fhandle = @sin就创建了sin的句柄,输入fhandle(x)其实就是sin(x)的功能。
reference:
http://blog.csdn.net/shaoguangleo/article/details/6043331
《函数句柄实际上提供了一种间接调用函数的方法》
创建函数句柄需要用到操作符@
创建函数句柄的一般语法如下所示:
fhandle = @function_filename
例如fhandle = @sin就创建了sin的句柄,输入fhandle(x)其实就是sin(x)的功能。
reference:
http://blog.csdn.net/shaoguangleo/article/details/6043331