Displaying the progress of a factorial as a vector.
1 view (last 30 days)
Show older comments
Ricardo Berrios
on 9 Feb 2016
Commented: Ricardo Berrios
on 9 Feb 2016
I'm supposed to create a function that calculates the factorial of any given number(n) and asks the user if they want to see the progression of the factorial as a vector. I've got the calculation part down but I can't seem to find a way to display the progression as a vector.
This is basically what I need:
n = 6
n! = 720
V = [6 30 120 360 720 720]
Any help will be greatly appreciated.
0 Comments
Accepted Answer
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!