RosettaCodeData/Task/Dot-product/Octave/dot-product.octave
2023-07-01 13:44:08 -04:00

3 lines
115 B
Text

a = [1, 3, -5]
b = [4, -2, -1] % or [4; -2; -1] and avoid transposition with '
disp( a * b' ) % ' means transpose