How do you mathmatically modify a coordinate in an array? Not what the coordinate references, e.g. a pixel intensity value, but the coordinate itself.

How do you mathmatically modify a coordinate in an array? Not what the coordinate references, ex. a pixel intensity value, but the coordinate itself.
So if I want to create a loop that performs a function on a point then moves to the next point by adding one to the previous coordinate:
e.g.from A(1,1) to A(1,2)
Thanks

 Accepted Answer

You do not want to do this "mathematically". You want linear indexing

2 Comments

How would I then go about modify that though? From say A(1) to A(3) to A(5), moving along by 2 each time?
Thanks for the reply, Ross

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!