Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.339.453 Times

VChooseKRO 1.0

  Date Added: August 14, 2013  |  Visits: 458

VChooseKRO

Report Broken Link
Printer Friendly Version


Product Homepage
Download (50 downloads)



VChooseKRO(V, K) creates a matrix, which rows are all permutations created by choosing K elements of the vector V with order and with repetitions.INPUT: V: Array of class DOUBLE, SINGLE, (U)INT8/16/32/64, LOGICAL, CHAR. Prefer (U)INT8 or (U)INT16 for speed. K: Number of elements to choose.OUTPUT: Y: Matrix of size [NUMEL(V)^K, K]. Y has the same class as the input V.EXAMPLES: Choose 2 elements from [1,2,3]: VChooseKRO(1:3, 2) ==> [1,1; 1,2; 1,3; 2,1; 2,2; 2,3; 3,1; 3,2; 3,3] For speed cast the input to integer types if possible: Y = double(VChooseKRO(int16(1:1000), 2)); is faster than: Y = VChooseKRO(1:1000, 2); To get the permutations of cell arrays, permute the index: C = {'a', 'b', 'c', 'd'}; C2 = C(VChooseKRO(1:4, 2)) ==> C2 = {'a', 'b'; 'a', 'c'; 'a', 'd'; 'b', 'c'; 'b', 'd'; 'c', 'd'}This MEX version is faster than NPERMUTEK and the more general COMBINATOR of Matt Fig: ~8 times for small arrays, ~2 times for (N=2000, K=2), ~10 times for (N=2, K=16, Class=INT8). COMBN of Jos is again slower than Matt's functions and it does not handle INT classes. See screen shot.Tested: Matlab 6.5, 7.7, 7.8, WinXP, Compilers: BCC5.5, LCC2.4/3.8, Open Watcom 1.8The unit-test TestVChooseKRO should be called after compiling. It compares the speed of VChooseKRO with COMBN, NPERMUTEK and COMBINATOR, if these files are found in the path.See also: VChooseK (no repetitions, no order): http://www.mathworks.com/matlabcentral/fileexchange/26190I'd appreciate suggestions for improvements and bug reports sent through email - thanks

Requirements: No special requirements
Platforms: Matlab
Keyword: Classes Compilers Functions Handle Matlab Matt Screen Slower Tested Winxp
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


VCHOOSEKRO RELATED
Development Tools  -  Nested Functions in MATLAB 1.0
twoFigs.m is an example M-file to accompany the article "Nested Functions in MATLAB" in the January 2006 issue of The MathWorks News & Notes.twoFigs.m is an example 2-figure GUI that uses nested functions to manage the data and state. Since the...
10 KB  
Development Tools  -  MATLAB video tutorial in Czech - Lesson 8: Scripts and functions 1.0
This video describes creating scripts and functions in MATLAB in the Czech language. It's the eighth part of complete video tutorial about MATLAB and SIMULINK.AVI file is compressed by WinZIP, TechSmith Screen Capture Codec (TSCC) is necessary to...
6.55 MB  
Development Tools  -  MATLAB video tutorial in Czech - Lesson 5: Rounding and trigonometric functions 1.0
This video describes working with trigonometric and rounding functions in MATLAB in the Czech language. It's the fifth part of complete video tutorial about MATLAB and SIMULINK.AVI file is compressed by WinZIP, TechSmith Screen Capture Codec...
5.98 MB  
Development Tools  -  MATLAB video tutorial in Czech - Lesson 10: Symbolic math 1.0
This video describes symbolic math functions in MATLAB in the Czech language. It's the tenth part of complete video tutorial about MATLAB and SIMULINK. Symbolic Math Toolbox is needed.AVI file is compressed by WinZIP, TechSmith Screen Capture...
12.36 MB  
Development Tools  -  Copernic Desktop Search functions for Matlab 1.0
Copernic Desktop Search is a popular free desktop search tool that searches Microsoft Word, Excel, and PowerPoint files, Acrobat PDFs, Outlook emails, and all popular music, picture and video formats. Copernic can also search your browser history,...
10 KB  
Libraries  -  SPUC 2.3.1
Signal Processing using C++ (SPUC) is a C++ source code library of DSP and digital communication classes and functions useful for system modeling, software prototyping, and simulation. The objective of SPUC is to provide the Communications...
460.8 KB  
Libraries  -  IT++ 4.2.0
IT++ is a C++ library of mathematical, signal processing and communication routines IT++ is a C++ library of mathematical, signal processing and communication classes and functions. Its main use is in simulation of communication systems and for...
1.3 MB  
Communication  -  Fixed-point signal processing in M 1.0
Functions accompanying MATLAB News & Notes article "Fixed-point Signal Processing: Getting Started" by Darel A. Linebarger and Thomas A. Bryan, 2004. The functions include an FIR filter in M that can be run in fixed-point and floating-point.
10 KB  
Development Tools  -  ispair 1.0
from all the IS* functions from MATLAB I always missed this one...
10 KB  
Development Tools  -  Minimize/maximize figure window 1.0
This functions wraps Matlab figure function, allowing the user to set the figure size to one of the two following states- full screen or non full screen (figure default). As figure function results with non-maximized dimensions, the default in...
10 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB