How to convert my code block to recursive function?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
"My code block does recursion. It's not a "recursive function", as in a function that calls itself, but it does implement a recursion. " I how to convert my code block to recursive function. Can you help me, please?
Respuestas (1)
Image Analyst
el 24 de Oct. de 2020
You need the first line to be
function newton() % Maybe with some arguments
then somewhere in newton, you need to call newton -- that's what makes it recursive. All you have now is a simple script m-file.
0 comentarios
Ver también
Categorías
Más información sobre Electrical Block Libraries en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!