Info

This question is closed. Reopen it to edit or answer.

my code is giving output " Index exceeds matrix dimension" and its mentioning the line number, i cannot understand how to solve this problem, please help!

2 views (last 30 days)
the output result is :
the code is:
  2 Comments
Joseph Cheng
Joseph Cheng on 6 Jul 2015
use the debug tool and go through the function. Eventually you'll see which step in the forloop has the issue and where you're indexing more than available. is index pairs empty for some reason.

Answers (0)

Community Treasure Hunt

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

Start Hunting!