Writing Script for nchoosek without the factorial function

1 visualización (últimos 30 días)
Taylor Barnhardt
Taylor Barnhardt el 18 de Sept. de 2017
Respondida: Walter Roberson el 18 de Sept. de 2017
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?

Respuestas (1)

Walter Roberson
Walter Roberson el 18 de Sept. de 2017
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.

Categorías

Más información sobre Discrete Math en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by