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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! 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