Filter löschen
Filter löschen

How to turn a function with a for loop into a recursive function

1 Ansicht (letzte 30 Tage)
Lee Cohen
Lee Cohen am 18 Apr. 2019
Hello, I have a task to write a recursive function, that solves a system with an upper-triangular coefficient matrix. I mean, to solve the system: Ax=b, when A is an upper-triangular coefficient matrix
I wrote a function using for loop, howover I don't know how to turn it into a recursive function. Here's my code:
function x=uppermatsolve(M,b);
for k=n-1:-1:1
Any help is greatly appreciated!

Antworten (0)


Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by