use of eval in loop, Index exceeds matrix dimensions.
1 view (last 30 days)
Show older comments
Hi,
I have 250 decision trees in a dataset called c1 .. c250
I am trying to use the isbranch function in a loop.
This is the code:
for i = 1:250
STR = sprintf('isbranch(c%d)',i);
branches = eval(STR);
end;
I used eval before to use these trees, and no error was showing then. Now I keep getting the error:
Index exceeds matrix dimensions.
Any suggestions would be welcome.
Thanks,
Michiel
4 Comments
Answers (0)
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!