diff scripts/quaternion/quaternion.m @ 6046:34f96dd5441b

[project @ 2006-10-10 16:10:25 by jwe]
author jwe
date Tue, 10 Oct 2006 16:10:31 +0000
parents 4c8a2e4e0717
children 93c65f2a5668
line wrap: on
line diff
--- a/scripts/quaternion/quaternion.m
+++ b/scripts/quaternion/quaternion.m
@@ -70,12 +70,12 @@
 	  a = vv;
 	  b = theta;
 	otherwise
-	  usage ("[a, b, c, d] = quaternion (w) or [vv, theta] = quaternion (w)");
+	  print_usage ();
       endswitch
 
   case(2)
     if (nargout != 1)
-      usage ("w = quaterion (vv, theta)");
+      print_usage ();
     endif
     vv = w;
     theta = x;
@@ -101,7 +101,7 @@
 
   case(4)
     if (nargout != 1)
-      usage ("w = quaterion (a, b, c, d)");
+      print_usage ();
     endif
     if (! (isscalar (w) && isscalar (x) && isscalar (y) && isscalar (z)))
       error ("input values must be scalars");
@@ -109,7 +109,7 @@
     a = [w, x, y, z];
 
   otherwise
-    usage ("[a, b, c, d] = quaternion (w) or a = quaternion (w, x, y, z)");
+    print_usage ();
 
   endswitch