Linear Equations -- JHU MATLAB Help Page
LINEAR EQUATIONS
 

Creating a Matrix
Substituting Within a Symbolic Matrix
Manipulating Regular Matrices
Vectors
Scalar Multiplication
Addition of Matrices
Gauss-Jordan Elimination
Reduced Row-Echelon Form
Dot Product
Rank
Number of Solutions
Scalar Multiplication
How to Examples Exercise
How to:
We can multiply any matrix (don't forget
vectors are just a special type of matrix) by a scalar, c, which is just a fancy name for some constant value:
     A = c*A

Or we can multiply a single row, column, or entry (types of vectors) by a scalar, c:
     A(i, j) = c*A(i, j)


Examples:
Let's start with our good friend, matrix R, which is a 3x3 matrix where every entry is equal to 13. Now, let's make it so every entry is equal to 26:
     R = 2*R

That was easy, now let's change only the 3rd row, so that the entire row is equal to 52:
     R(3, :) = 2*R(3, :)


Exercise:
Given vector v = [1; 2; 3; 4; 5; 6; 7; 8; 9; 10], change it into [10; 20; 30; 40; 50; 60; 70; 80; 90; 100], in one step.

Click here to see the answer.