Calculation of Factorial using Recursive Relation
Mostra commenti meno recenti
Hello,
I have tried to construct a code using a "function" that contains a "recursive relation", but was not able to complete it. The following Matlab code is designed to compute 10!. Would you help me to find out the solution?
n=10;
f=@recursion; <===?
function y=recursion(n)
y=n*recursion(n)
end
Risposta accettata
Più risposte (1)
Jeff Miller
il 1 Ago 2018
0 voti
Categorie
Scopri di più su Simulink Design Verifier in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!