help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Vectorize Problem


From: Thomas D. Dean
Subject: Vectorize Problem
Date: Sun, 27 Feb 2011 15:12:30 -0800

I have an array from a CNC application

octave: 1> V
   0.00000  -0.18000
  -0.52500   0.00000
   0.00000   0.18000
   0.52500   0.00000

I want to derive hand-wheel rotations:
  V(:,1) is x hand-wheel
  V(:,2) is y hand-wheel

If V(1,1) < 0 then "X CW"
          > 0 then "X CCW"
         == 0 then ""
If V(1,2) < 0 then "Y CW"
          > 0 then "Y CCW"
         == 0 then ""

etc.

I may have to add a Z axis.  BTW, this machine is left hand cartesian.
I wonder if all CNC mills are?

I have tried several ways, but, no success.  I can do it with loops, if,
etc.

Any ideas?

tomdean




reply via email to

[Prev in Thread] Current Thread [Next in Thread]