MATLAB: Hi i am getting Index out of bounds error pls help me solve it out of bounds I hv a 2d image of 93×58 pixels. Error im gettin is attempted to access b(1,59) because size(b)=(93,58). How do i go about rectifying this error?? Pls help as im new to matlab and to image processing. Thanks in advance. Best Answer You’re asking for column 59 of a 58-column matrix.Think about it ...EDIT — Seeing only the part of your code that you posted (about 8 hours ago), I would simply reverse the values of ‘m2’ and ‘n2’ in your loops. Related SolutionsMATLAB: Storing a vector as a row of a matrix N = 12;x = rand(1,N);y = rand(1,N);z = rand(1,N);A = [ x ; y ; z ] ; MATLAB: Can i make a matrix like this n=4;m=4;a=zeros(m,n)a(1:m,1)=1:ma(1,1:n)=1:nfor ii=2:m for jj=2:n a(ii,jj)=a(ii,jj-1)*a(ii-1,jj) endend Related QuestionGetting an error “INDEX OUT OF BOUNDS” in the matlab program. Please help.Image contrast estimation. How to speed up this codeKeeping elements with specific conditions in a matrixPre allocating triple loopsOperations using individual elements in a matrix
Best Answer