Réponse acceptée

David Goodmanson
David Goodmanson le 29 Mar 2017

1 vote

Hi jay, It looks like I is giving you the number of columns and J the number of rows. But i is your row index and j is your column index. So you have to reverse the definitions of I and J.

1 commentaire

jay Florence
jay Florence le 29 Mar 2017
Thank you so much this was the problem and it all works perfectly now!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by