Avoid "depth limit" for nested parenthesis and brackets
Mostra commenti meno recenti
MATLAB has a limit of 32 nested parenthesis / brackets, and I have a function that requires more than this. Can this limit be avoided?
3 Commenti
Tiasa Ghosh
il 22 Ago 2018
where did you come upon this number 32? Is it documented somewhere? Because I have nesting upto 30 parentheses but still I get the error of too deep nesting.
Rik
il 22 Ago 2018
It sounds like you should be able to avoid this by simply storing intermediary results.
Tiasa Ghosh
il 22 Ago 2018
For my case, the equations contain variables from matrix multiplication and it is unavoidable to have deep parentheses. So if anybody could tell how deep nesting MATLAB allows, I would adjust my matrix dimensions accordingly.
Risposte (0)
Categorie
Scopri di più su Matrix Indexing in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!