MATLAB: Simple arithmetic operations

From Robotics
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:


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