non sequential matrix processing bassed on condition?

gbravetti's icon

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!

broc's icon

You can access individual cells of a matrix with 'getcell' and 'setcell'.

For details of message format see help/reference page.

David Butler's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Example using jit.expr

gbravetti's icon

@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!