Does Matlab have a permutation operator?

2 ビュー (過去 30 日間)
Amanda Chun
Amanda Chun 2018 年 3 月 14 日
編集済み: Stephen23 2018 年 3 月 14 日
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 日

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

採用された回答

Birdman
Birdman 2018 年 3 月 14 日
編集済み: Birdman 2018 年 3 月 14 日
There is a built-in function called factorial:
>>factorial(10)
ans=
3628800
  1 件のコメント
Amanda Chun
Amanda Chun 2018 年 3 月 14 日
thank you so much!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFunction Creation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by