声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2837|回复: 1

[编程技巧] inline这个函数是什么意思?

[复制链接]
发表于 2005-10-28 12:24 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
inline这个函数是什么意思?怎么使用?
回复
分享到:

使用道具 举报

发表于 2005-10-28 14:02 | 显示全部楼层

回复:(fuhongsun)inline这个函数是什么意思?

INLINE Construct INLINE object.<BR>    INLINE(EXPR) constructs an inline function object from the<BR>    MATLAB expression contained in the string EXPR.  The input<BR>    arguments are automatically determined by searching EXPR<BR>    for variable names (see SYMVAR). If no variable exists, 'x'<BR>    is used.<BR> <BR>    INLINE(EXPR, ARG1, ARG2, ...) constructs an inline<BR>    function whose input arguments are specified by the<BR>    strings ARG1, ARG2, ...  Multicharacter symbol names may<BR>    be used.<BR> <BR>    INLINE(EXPR, N), where N is a scalar, constructs an<BR>    inline function whose input arguments are 'x', 'P1',<BR>    'P2', ..., 'PN'.<BR> <BR>    Examples:<BR>      g = inline('t^2')<BR>      g = inline('sin(2*pi*f + theta)')<BR>      g = inline('sin(2*pi*f + theta)', 'f', 'theta')<BR>      g = inline('x^P1', 1)
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-8 05:07 , Processed in 0.110527 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表