RosettaCodeData/Task/Dot-product/Octave/dot-product.octave
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07: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