MATLAB: Simple arithmetic operations

From Robotics
Revision as of 11:13, 26 September 2014 by Nickchen (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
← Previous: Unit vectors Matlab.png Web interface  |  MATLAB overview  |  Back to article: Simple arithmetic operations Next: Dot product


Arithmetic operations in general, so among others of vectors with vectors and with scalars, are done in MATLAB by just using the mathematical operators '+', '-', '*' and '/'.

Corresponding to the example "Velocity of a robot" in the vector algebra article a time t and a three-dimensional velocity vector v can be created. Then the distance s that the robot moves in time t can be computed as follows:

Matlab-va-vector-example.png

And corresponding to the example in the article about simple arithmetic operations, the movement of a robot can be computed as follows:

Matlab-va-simple.png