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 iconALLCOMB (Scripts) Publisher's description

B = ALLCOMB(A1,A2,A3,...,AN) returns all combinations of the elements in A1

B = ALLCOMB(A1,A2,A3,...,AN) returns all combinations of the elements in A1, A2, ..., and AN. B is P-by-N matrix is which P is the product of the number of elements of the N inputs.

Empty inputs yields an empty matrix B of size 0-by-N. Note that previous versions (1.x) simply ignored empty inputs.

allcomb([1 3 5],[-3 8],[0 1]) ;
1 -3 0
1 -3 1
1 8 0
5 -3 1
5 8 0
5 8 1

ALLCOMB(A1,..AN,'matlab') causes the first column to change fastest. This is more consistent with matlab indexing. Example:
allcomb(1:2,3:4,5:6,'matlab') %->
1 3 5
2 3 5
1 4 5
2 4 6

This functionality is also known as the cartesian product.

See also here on the FEX

System Requirements:

MATLAB 6.5 (R13)
Program Release Status: New Release
Program Install Support: Install and Uninstall

ALLCOMB (Scripts) Tags:

Click on a tag to find related softwares

Is ALLCOMB (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.