addition

9 次查看(过去 30 天)
Kugen Raj
Kugen Raj 2012-3-23
qq =
33 48 82 91 101 138 176.
i want add 1 to each of the element in qq. how can i do that?
  1 个评论
Jan
Jan 2012-3-23
After your other questions, e.g. http://www.mathworks.com/matlabcentral/answers/25394-beampattern-calculation-for-linear-array , this is surprisingly basic.

请先登录,再进行评论。

采纳的回答

Thomas
Thomas 2012-3-23
  2 个评论
Jan
Jan 2012-3-23
I'm speechless. "+1" adds 1. Congratulations to Cleve Moler, who had the marvelous idea to let Matlab syntax be intuitive.
This is, as far as I remember, the shortest accepted answer. It will be hard to beat this. I vote for this answer and state this by the unavoidable: +1.
Thomas
Thomas 2012-3-23
:)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Variables 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by