# How can I find a connected path on a matrix by Random Search?

8 views (last 30 days)

Show older comments

Hello

I have a matrix . I want to find a connected path of elements from up to button. I want to do it by random search. As I said I want connected path ,then if it selects element [i,j] in row i , in the next row (i+1) it should select from column j-1 or j or j+1. I want to do it by random search.

I will appreciate your help.

##### 0 Comments

### Accepted Answer

### More Answers (1)

Image Analyst
on 27 May 2014

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!