How to call VChooseK function?

I tried to use vchoosek(v, k). But get the error message saying "undefined function or variable". Can anybody tell me how to call this function correctly? Thank you!

1 个评论

Did you download it to a place where Matlab can see it?

请先登录,再进行评论。

回答(1 个)

Prateekshya
Prateekshya 2024-9-3
编辑:Prateekshya 2024-9-3

0 个投票

Hello Ruini,
You need to download vchoosek which can be found in MATLAB Central's File Exchange and then add it to MATLAB's path. Please follow this link to download:
Alternatively, you can explore and use MATLAB's built-in nchoosek function for similar functionality. Please follow the below link to know more about the same:
I hope it helps!

类别

在 帮助中心 和 File Exchange 中查找有关 Downloads 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by