Subtraction

The transpose of a matrix is also a matrix. The rows of the transpose are the columns of the original matrix and vice-versa.

- Scalar Row Vector Column Vector Matrix
Scalar Subtracts the second scalar value from the first scalar value. Subtracts each element in the row vector from the scalar. The resulting vector is the same size as the original vector. Subtracts each element in the column vector from the scalar. The resulting vector is the same size as the original vector. Subtracts each element in the matrix from the scalar. The resulting vector is the same size as the original matrix.
Row Vector Subtracts the scalar from each element in the row vector. The resulting vector is the same size as the original vector. Requires vectors to be the same size. Subtracts each element in operand 2 from the corresponding element in operand 1. The resulting vector is the same size as the original vectors.    
Column Vector Subtracts the scalar from each element in the column vector. The resulting vector is the same size as the original vector.   Requires vectors to be the same size. Subtracts each element in operand 2 from the corresponding element in operand 1. The resulting vector is the same size as the original vectors.  
Matrix Subtracts the scalar from each element in the matrix. The resulting vector is the same size as the original matrix.     Requires matrices to be the same size. Subtracts each element in operand 1 from the corresponding element in operand 2. The resulting vector is the same size as the original matrices.

Examples

2-3
ans = -1 

[4 2 1] – 3
ans = [1 -1 -2]  

[4 2 1] - [5 3 2]
ans = [-1 -1 -1]

Invalid Example

[3 6 5] – [4 3; 6 5]