addition

조회 수: 10 (최근 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