Combination without repetition in Matlab

  • Context: MATLAB 
  • Thread starter Thread starter haiha
  • Start date Start date
  • Tags Tags
    Combination Matlab
Click For Summary
SUMMARY

The discussion centers on finding the function for combinations without repetition in MATLAB, specifically the equivalent of Excel's COMBIN(n,k). The user inquires about the appropriate MATLAB function and is directed to use the combs() function. This function allows users to generate combinations of k elements from a set of n elements effectively.

PREREQUISITES
  • Basic understanding of MATLAB programming
  • Familiarity with combinatorial mathematics
  • Knowledge of function syntax in MATLAB
  • Experience with data manipulation in MATLAB
NEXT STEPS
  • Research the combs() function in MATLAB documentation
  • Explore combinatorial functions available in MATLAB, such as nchoosek()
  • Learn about generating random combinations in MATLAB
  • Investigate performance considerations when working with large sets in MATLAB
USEFUL FOR

Beginner MATLAB users, data analysts, and anyone interested in combinatorial mathematics within MATLAB.

haiha
Messages
136
Reaction score
1
Hi all

I am just new to matlab. This question may seem very easy to most of you. But I can not find it. What is the function of combination of k from set of n: C(n,k) in mlab?. It is available in excel as COMBIN(n,k), so I think there should be one in matlab.
Thanks
 
Physics news on Phys.org

Similar threads

  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 18 ·
Replies
18
Views
6K