addition
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Jan
am 23 Mär. 2012
After your other questions, e.g. http://www.mathworks.com/matlabcentral/answers/25394-beampattern-calculation-for-linear-array , this is surprisingly basic.
Akzeptierte Antwort
Thomas
am 23 Mär. 2012
c=qq+1
2 Kommentare
Jan
am 23 Mär. 2012
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Variables finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!