COMBN Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: combn.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Josh (View more)

COMBN script description:




Publisher review:
COMBN - All combinations of N elements taken from the vector V. COMBN - all combinations of elementsM = 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.Example:M = COMBN([0 1],3) returns the 8-by-3 matrix:0 0 00 0 10 1 00 1 1...1 1 1All 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.COMBN is very fast using a single matrix multiplication, without any explicit for-loops. See also PERMS, NCHOOSEK and ALLCOMB, PERMPOS here on the FEX Requirements: ยท MATLAB Release: R13
COMBN is a Matlab script for Mathematics scripts design by Josh. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5