Maximum recursion limit is reached when I try to open any script
显示 更早的评论
I am unable to open any Matlab scripts - if I try to open them I get a pop-up window saying "Error using open Maximum recursion limit of 500 is reached". I've tried to extend the recursion limit, but it is still reached even if I make it 1000 so I don't think that will fix the problem. My understanding of the recursion is that it will be reached if you try to call a function within a function (?), but I receive this error even if I have just started Matlab and am trying to open a script with nothing else running.
1 个评论
Rik
2024-4-11
Did you edit any of the functions of Matlab itself?
The recursion limit will prevent crashes in a context like this:
loop(1000) function k=loop(n) A=rand(500,600); %increase overhead if n==0 k=1; %avoid infinite recursion else k=1+loop(n-1); end
回答(1 个)
Did you create an open.m file that tries to call open? What does this command show?
which -all open
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!