Mercurial > octave-nkf
diff scripts/quaternion/qmult.m @ 7125:f084ba47812b
[project @ 2007-11-08 02:29:23 by jwe]
author | jwe |
---|---|
date | Thu, 08 Nov 2007 02:29:24 +0000 |
parents | a1dbe9d80eee |
children |
line wrap: on
line diff
--- a/scripts/quaternion/qmult.m Thu Nov 08 01:09:44 2007 +0000 +++ b/scripts/quaternion/qmult.m Thu Nov 08 02:29:24 2007 +0000 @@ -40,7 +40,11 @@ ## Adapted-By: jwe function retval = qmult (a, b) - + + if (nargin != 2 ) + print_usage (); + endif + [a1, b1, c1, d1] = quaternion (a); [a2, b2, c2, d2] = quaternion (b);