cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Changing Matrix Elements Automatically

RB_10520285
1-Newbie

Changing Matrix Elements Automatically

I have a large matrix representing an image, 4000 columns, 2000 rows. I would like to change the values of some of the matrix elements and these elements are defined in a pair of vectors. Trying to automate the process because of the extreme size and complexity. I have attached a small example of what I am doing (and doing wrong) in which I have set up a FOR loop. This loop changes all of the elements, not just the ones I want. Help? See attached example.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

3 REPLIES 3

Capture.JPG

Thank you! Very cool. Learned a lot, lots to learn.

 

LucMeekes
23-Emerald III
(To:RB_10520285)

For this purpose the built-in, but undocumented, function update2() comes in handy:

LucMeekes_0-1674683446980.png

Success!
Luc

 

Top Tags