Skip to content

Matlab#

Matlab is a powerful computer algebra system.

 % normal math
 sq = sqrt(2)

 % vectors
 v = [1 2 3]
 v'              % transpose


 % matrices
 A = zeros(2)    % zeros 2x2
 B = ones(3)
 C = eye(3)      % unit matrix 3x3