MATLAB Answers

Index in position 2 exceeds array bounds (must not exceed 1).????

4 views (last 30 days)
Shahid Mahmood
Shahid Mahmood on 24 Nov 2019
Answered: Rik on 24 Nov 2019
dimension of x is 100x1

  0 Comments

Sign in to comment.

Answers (1)

Rik
Rik on 24 Nov 2019
You are trying to access x(:,2) in the second iteration of either loop. Either change that, or switch to size(x,2) in your loop definition.

  0 Comments

Sign in to comment.

Sign in to answer this question.