feval 函数的使用

feval函数在MATLAB中用于根据函数句柄或函数名称评估函数。它可以处理函数句柄绑定的多个内置或.m函数,并根据输入参数的数据类型选择合适的函数。文章通过示例展示了feval的用法,并探讨了它在处理不同参数列表时的便利性,特别是在需要动态调用不同函数场景中的优势。
摘要由CSDN通过智能技术生成

学习笔记——feval函数

feval - Evaluate function(函数句柄)

    This MATLAB function evaluates the function handle, fhandle, using arguments x1 through  xn(feval是函数句柄,x1,,,xn是自变量)

   [y1, y2, ...] = feval(fhandle, x1, ..., xn)

   fhandle——函数句柄        x1, ..., xn——函数计算的自变量        y1, y2, ...——输出的函数值

    [y1, y2, ...] = feval(fhandle, x1, ..., xn) evaluates the function handle, fhandle, using arguments x1 through xn. If the function handle is bound to more than one built-in or .m function,            (that is, it represents a set of overloaded functions), then the data type of the arguments x1 through xn determines which function is dispatched to.
 

   [y1, y2, ...] = feval(fname, x1, ..., xn)

    [y1, y2, ...] = feval(fname, x1, ..., xn). If fname is a quoted string containing the name of a function (usually defined within file having a .m file extension), th

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值