What is the equivalent to += in Matlab?

前端 未结 2 1097
傲寒
傲寒 2020-12-03 20:41

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

2条回答
  •  生来不讨喜
    2020-12-03 21:31

    AFAIK, there's no such thing in MATLAB.

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

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

提交回复
热议问题