Attempted to access data1(:,1); index out of bounds because size(data1)=[0,0].

  • Thread starter Thread starter Engiman
  • Start date Start date
  • Tags Tags
    Bounds Index
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 4K views
Engiman
Messages
1
Reaction score
0
Hi,
I am running a code in MATLAB process 8 columns and over 500 rows of data but i get the above error.
With 6 columns, the code works well. Your help is important.
 
Engineering news on Phys.org
It sounds like its not understanding your data since it says the size is [0,0] when it should be [500,8]. Could you attach the code?