non sequential matrix processing bassed on condition?


    Oct 25 2011 | 12:04 pm
    Hi,
    It is possible to processe selectively the content of a matrix based on a condition without scanning it with "uzi" like objects?
    I want to do something like this:
    "if the value stored on a particular x-y at plane 0 is equal to something, then perform an operation over the value stored in the same x-y at plane 1".
    Thanks!

    • Oct 25 2011 | 1:09 pm
      You can access individual cells of a matrix with 'getcell' and 'setcell'.
      For details of message format see help/reference page.
    • Oct 25 2011 | 1:42 pm
      Example using jit.expr
    • Oct 25 2011 | 3:54 pm
      @broc: may be I'm wrong, but as far as I know, getcell and setcell works on a single x-y position on the matrix, and I need to process all x-y positions on a single operation, please let me know if I'm wrong.
      @David Butler: that is exactly what I'm talking, thanks!