SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>

7-DAY TOP DOWNLOAD

#
Program
aircrack 1.0RC1
58,847
Scary Maze
34,920
Advance Backup 2.0
28,317
QuickPlay 3.8.4
25,272
Free Youtube
Downloader

23,998
FFmpeg
20,430
Referrer
verification/validat
ion Javascript

19,175
szewo referer logger
3.0

19,043
Netcat 0.7.1
18,904
vBulletin 3.7.0b4
17,841
Home / Scripts / Scientific/Engineering / Mathematics

CARTPROD




Downloads: 0  Add to download basket  Tell us about an update
User Rating:
Rated by:
Fair (2.8/5)
19 user(s)
Developer:

License / Price:
Platforms:

Databases:

Language:

Last Updated:

Category:
David Fass | More scripts
Freeware 
Windows / Linux / Mac OS / BSD / Solaris
N/A
Matlab
August 24th, 2007, 07:17 GMT
C: \ Scientific/Engineering \ Mathematics

 Read user reviews (0)  Add a review  Refer to a friend  Subscribe

 

CARTPROD description

 

CARTPROD returns a matrix containing the cartesian product of multiple input sets.

CARTPROD Cartesian product of multiple sets. (The cartesian product of multiple input sets is a larger set containing every ordered combination of the input set elements. See example below.)

X = CARTPROD(A,B,C,...) returns the cartesian product of the sets A,B,C, etc, where A,B,C, are numerical vectors.

Example: A = [-1 -3 -5];
B = [10 11];
C = [0 1];

X = cartprod(A,B,C)
X =

-5 10 0
-3 10 0
-1 10 0
-5 11 0
-3 11 0
-1 11 0
-5 10 1
-3 10 1
-1 10 1
-5 11 1
-3 11 1
-1 11 1

This function requires IND2SUBVECT, also available (I hope) on the MathWorks File Exchange site.

Requirements:

· MATLAB Release: R13



TAGS:

matlab CARTPROD | matlab mathematics | CARTPROD mathematics | matlab | CARTPROD | mathematics

Related downloads IT News Popular downloads New additions   Latest reviews  
naninterp
naninterp - One dimensional Interpolation over NaNs.
INSERTROWS
INSERTROWS - Insert rows into a matrix at specific locations
fshift
fshift shifts the elements of an array by a (possibly non-integer) given number of elements.
unique_no_sort
unique_no_sort - Like unique.m but without sorting
matlab mep
mep creates epochs (0|1) in a logical array according to a list of indices (begin:end).


HTML code for linking to this page:


Go to top



SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM