Writing Script for nchoosek without the factorial function
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
Walter Roberson
2017-9-18
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Math 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!