How to solve "Maximum recursion limit of 500 reached." error

6 Ansichten (letzte 30 Tage)
Ahmet AKÇAY
Ahmet AKÇAY am 12 Jun. 2021
Kommentiert: Ahmet AKÇAY am 12 Jun. 2021
I have been getting an error in Matlab program for a long time. I also tried deleting and reinstalling the program but I still keep getting the same error.
It doesn't even handle the simplest "clc" or "clear all" code I've written on the code or the command window.
Error in clc (line 1)
clc
Caused by: Maximum recursion limit of 500 reached.

Antworten (1)

Steven Lord
Steven Lord am 12 Jun. 2021
You've created a script file clc.m that tries to call the built-in clc function on its first line. The clc.m you've created takes precedence over the built-in clc, so clc.m tries to call clc.m which tries to call clc.m ...
Rename or remove your clc.m file.

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by