non sequential matrix processing bassed on condition?

Oct 25, 2011 at 12:04pm

non sequential matrix processing bassed on condition?

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!

#59533
Oct 25, 2011 at 1:09pm

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

For details of message format see help/reference page.

#214209
Oct 25, 2011 at 1:42pm

Example using jit.expr

– Pasted Max Patch, click to expand. –
#214210
Oct 25, 2011 at 3:54pm

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

#214211

You must be logged in to reply to this topic.