As said in the title I have got an error using imregionalmax. I have two monotone variable xVec, yVec and a third dependent variable imageMag that is experimental value. imageMag is 31x593. I have used
ix = find(imregionalmax(z));
but it says that index exceeds matrix dimensions. Why?