I have to write this down twice?
2 views (last 30 days)
Show older comments
X(i1:i2) = X(i1:i2) - const;
Do I have to use X(i1:i2) twice in the line to achieve the result above?
0 Comments
Answers (2)
Image Analyst
on 18 Oct 2015
Yes, that's correct.
Would you expect some other way to add a constant to just some of the elements in the vector? If so, what?
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!