graph path

I have a graph matrix as eye(200). I want to make a path that traverse this line appears diagonally. In addition, I have many such matrices of similar behavior not precisely as eye where position of 1 and 0 are fixed.
How can I find path in such matrices in easiest way?
Thanks

Categories

Find more on Networks in Help Center and File Exchange

Tags

Asked:

A
A
on 29 Jun 2011

Community Treasure Hunt

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

Start Hunting!