- b = [4; 9; 2] # Column vector
- A = [ 3 4 5;
- 1 3 1;
- 3 5 9 ]
- x = A \ b # Solve the system Ax = b
Solve systems of equations with linear algebra operations on vectors and matrices.
- x = -10:0.1:10; # Create an evenly-spaced vector from -10..10
- y = sin (x); # y is also a vector
- plot (x, y);
- title ("Simple 2-D Plot");
- xlabel ("x");
- ylabel ("sin (x)");