Writing Script for nchoosek without the factorial function

I'm being asked to write a script that calculates n choose k without using Matlab’s built-in factorial function. I know the basics to matlab but I'm still pretty new at this...any quick formatting tips to get me started?

답변 (1개)

Walter Roberson
Walter Roberson 2017년 9월 18일

0 개 추천

Formatting tip:
Enter you code in the editor without worrying too much about spacing. Then press control-A (command-A on Mac) to select it all, and click on the "Smart Indent" button.

카테고리

도움말 센터File Exchange에서 Discrete Math에 대해 자세히 알아보기

질문:

2017년 9월 18일

답변:

2017년 9월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by