About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconCOMBN (Scripts) Publisher's description

COMBN - all combinations of elements

COMBN - all combinations of elements
M = COMBN(V,N) returns all combinations of N elements of the elements in
vector V. M has the size (length(V).^N)-by-N.

[M,I] = COMBN(V,N) also returns the index matrix I so that M = V(I).

V can be an array of numbers, cells or strings.

M = COMBN([0 1],3) returns the 8-by-3 matrix:
0 0 0
0 0 1
0 1 0
0 1 1
1 1 1

All elements in V are regarded as unique, so M = COMBN([2 2],3) returns
a 8-by-3 matrix with all elements equal to 2.

NB Matrix sizes increases exponentially at rate (n^N)*N.

and ALLCOMB, PERMPOS here on the FEX

System Requirements:

MATLAB 7 (R14)
Program Release Status: New Release
Program Install Support: Install and Uninstall

COMBN (Scripts) Tags:

Click on a tag to find related softwares

Is COMBN (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.