Does Matlab have a permutation operator?

2 Ansichten (letzte 30 Tage)
Amanda Chun
Amanda Chun am 14 Mär. 2018
Bearbeitet: Stephen23 am 14 Mär. 2018
I just want to perform the operation
10! = 10*9*8*7*6*5*4*3*2*1,
but I can only find permutations relating to the obtaining all combinations of a vector. Is there simply an operations defined in matlab for this? Thank you!

Akzeptierte Antwort

Birdman
Birdman am 14 Mär. 2018
Bearbeitet: Birdman am 14 Mär. 2018
There is a built-in function called factorial:
>>factorial(10)
ans=
3628800

Weitere Antworten (0)

Kategorien

Mehr zu Function Creation 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