gpt4 book ai didi

Matlab 内联 VS 匿名函数

转载 作者:太空宇宙 更新时间:2023-11-03 20:12:02 25 4
gpt4 key购买 nike

在 MATLAB 中选择使用内联函数还是使用匿名函数有充分的理由吗?已经提出并回答了这个确切的问题 here ,但答案对新手 MATLAB 用户没有帮助,因为代码片段不完整,因此在粘贴到 MATLAB 命令窗口时它们不会运行。有人可以提供可以粘贴到 MATLAB 中的代码片段的答案吗?

最佳答案

匿名函数取代了内联函数(如文档和您发布的链接中所述)

文档警告:

inline will be removed in a future release. Use Anonymous Functions instead.

关于Matlab 内联 VS 匿名函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18253157/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com