Matlab中的多行匿名函数? [英] Multiline anonymous function in Matlab?

查看:34
本文介绍了Matlab中的多行匿名函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 Matlab 中创建多行匿名函数?

Is it possible to create multiline anonymous function in Matlab?

文档中没有合适的例子,但也有没有直接否认.在网络讨论中,我发现了一些提问者的嘲笑,好像这是愚蠢的愿望.如今,当大多数语言引入具有多行功能的 lambda 表达式时,这看起来很奇怪.

There are no appropriate examples in documentation, but also no direct denials. In web discussions I found some derisions of askers as if it silly wish. Nowadays, when most languages introducing lambda expressions with multiline capability this looks strange.

推荐答案

不,很遗憾,这是不可能的.

No, unfortunately this is not possible.

这篇关于Matlab中的多行匿名函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆