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!

채택된 답변

Birdman
Birdman 2018년 3월 14일
편집: Birdman 2018년 3월 14일
There is a built-in function called factorial:
>>factorial(10)
ans=
3628800

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Function Creation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by