Matlab 中 += 的等价物是什么? [英] What is the equivalent to += in Matlab?

查看:56
本文介绍了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.

这是可以理解的(看看 Steven Lord 的回答,第 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天全站免登陆