MATLAB: Out of memory. The likely cause is an infinite recursion within the program.

eeglabout of memory error

Hello,
I am receiving the following error message:
Out of memory. The likely cause is an infinite recursion within the program.
Error in fileparts (line 35)
elseif ~isrow(file)
I have already tried renaming as well as deleting the isrow.m fime in my eeglab folder with the Matlab folder. I have also tried removing the entire folder that contain the isrow.m file from the path but am still receiving the same error message.
*Thank you for any assistance*

Best Answer

You, or some code you've downloaded is shadowing the isrow.m function of matlab.
Hopefully, the isrow.m you've deleted is not the matlab one (otherwise, you'll have to reinstall matlab I'm afraid) but the shadowing one.
Two toolboxes that have been shown to shadow essential built-in matlab functions:
That latter one in particular caused exactly the error reported here.