Maximum recursion limit of 500 reached. ERROR how to SOLVE?

Error in econometricModeler (line 1)
econometricModeler
Caused by:
Maximum recursion limit of 500 reached.

1 Comment

econometricModeler
%% loading the Data
fedfunds = readtable('FEDFUNDS.csv');
fedfund = fedfunds(:, 2);
unrate1 = readtable('UNRATE.csv');
unrate = unrate1(:, 2);
%% Converting to double
% table to cell
unrate2 = table2cell(unrate);
fedfund2 = table2cell(fedfund);
% cell to double
unRate1 = cell2mat(unrate2);
fedFund1 = cell2mat(fedfund2);
% Concataneting Datas for EconometricModeler
EcoModel = [exchange amht anct anppt apit unRate1 fedFund1];

Sign in to comment.

 Accepted Answer

econometricModeler
That first line should be a comment

1 Comment

thanks a lot, i had also .m file with the same name in my current folder :o :) i have noticed that later on

Sign in to comment.

More Answers (1)

Generally speaking you don't want to call econometricModeler from within econometricModeler.m itself. If you do to implement a recursive algorithm, you want to have some sort of base case where you don't call econometricModeler.
Remove the line where you call econometricModeler inside itself.

Categories

Tags

Community Treasure Hunt

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

Start Hunting!