Basic vector computations in MATLAB