Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nchoosek([1:n],m)
- >> m=2
- m =
- 2
- >> n=5
- n =
- 5
- >> nchoosek([1:n],m)
- ans =
- 1 2
- 1 3
- 1 4
- 1 5
- 2 3
- 2 4
- 2 5
- 3 4
- 3 5
- 4 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement