Does Matlab have a permutation operator?

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!

1 件のコメント

Stephen23
Stephen23 2018 年 3 月 14 日
編集済み: Stephen23 2018 年 3 月 14 日
10! = 10*9*8*7*6*5*4*3*2*1,
This is called the factorial of ten:

サインインしてコメントする。

 採用された回答

Birdman
Birdman 2018 年 3 月 14 日
編集済み: Birdman 2018 年 3 月 14 日

0 投票

There is a built-in function called factorial:
>>factorial(10)
ans=
3628800

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeFunction Creation についてさらに検索

質問済み:

2018 年 3 月 14 日

編集済み:

2018 年 3 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by