在Matlab中等效于+ =的是什么? [英] What is the equivalent to += in Matlab?

查看:304
本文介绍了在Matlab中等效于+ =的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Matlab中是否有可能在不重新声明语句右侧的情况下增加变量的值?

Is it possible in Matlab to increment a value of a variable without restating it on the right hand side of the statement?

推荐答案

AFAIK,MATLAB中没有这样的东西.

AFAIK, there's no such thing in MATLAB.

这是可以理解的(请参阅史蒂文·洛德的回答,第11页).

And this is understandable(look at Steven Lord's answer, post 11).

该帖子表明,由于MATLAB是基于数组的,因此这种运算符充其量是模棱两可的,而且充其量是不直观的.

That post indicates that since MATLAB is array based, such operator would be ambiguous and unintuitive, at best.

这篇关于在Matlab中等效于+ =的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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