Matlab/Octave:

(unless stated otherwise, Matlab means both Matlab and Octave; the specific parts are colored as above)