I have to write this down twice?

X(i1:i2) = X(i1:i2) - const;
Do I have to use X(i1:i2) twice in the line to achieve the result above?

Respuestas (2)

Image Analyst
Image Analyst el 18 de Oct. de 2015

0 votos

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?

Categorías

Más información sobre Vehicle Dynamics Blockset en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 18 de Oct. de 2015

Respondida:

el 18 de Oct. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by