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
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 で Nearest Neighbors についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!