
Find myltiple numbers in array 1.0 File ID: 84808 


 Find myltiple numbers in array 1.0 License: Shareware File Size: 10.0 KB Downloads: 1
Submit Rating: 



Find myltiple numbers in array 1.0 Description 

Description: multiFind serves a similar purpose as find but when looking for multiple elements in an array of numbers. It returns two arrays of numbers. Each row of the two arrays contains the pair of indexes in which the numbers were found in the two arrays
Input: array: the array in which you want to find some numbers nums: the numbers you are looking for inside the array varargin: type: type refers to the type of the output. If it gets the value 'index', it returns just the pairs of indexes of the numbers in the two arrays 'array' and nums respectively. If it gets the value 'bin', it returns two binary arrays, with 1's where the elements were found in the two arrays. Default value: 'index' except: if you want to exclude specific numbers from the search, you use the except options and declare these numbers
Output: idx: the indexes of the found numbers in the first array posIdx: the indexes of the numbers in 'nums' of the numbers that were also found in 'array'
Example:
im1 = randi(1000, 100, 1) ; im2 = randi(1000, 100, 1) ;
[ix1, ix2] = multiFind(im1, im2) ; [ix1, ix2] = multiFind(im1, im2, 'type', 'index') ; [ix1, ix2] = multiFind(im1, im2, 'type', 'bin') ; [ix1, ix2] = multiFind(im1, im2, 'except', [1, 3]) ; 
More Similar Code 

Find an Element In an Array is a ASP based array lesson that describes easier method to perform the required task. It explains that the given value can be checked using array index value through all array items via FOR LOOP functions and the sample coding provides needed executable functions. Also, it is explained here, that VBScript can be integrated to simplify the process.
This is a very simple method to find prime numbers. I use a mathematical function to find non prime numbers. Thus I have compared its efficiency with a code found on Matlab Central, Written by John D'Errico.
Allowing Only Numbers in ASP. NET TextBoxes is a tutorial which helps you to know about the CustomValidator control. CustomValidator control is used to permit only numbers in an ASP.NET textbox. You have to set both ClientValidationFunction...
Random numbers in PHP is a tutorial for the users to create three random numbers between 0 and 9. A sample function for this creation is given on the page. simple slots function is also given for generating multiple number. Easy to follow step are...
http://akiscode.com/articles/gcd_of_a_list.shtml
This python code snippet allows you to find the GCD of a list of numbers, after this it is a simple matter of diving all the numbers in the list by the GCD to reduce it.
Why...
Shuffles numbers in a given mbyn matrix or 1byn vector. The output will have the same number of rows and columns as the input matrix or vector but with shuffled numbers.
This recipe helps find cyclical references in Python code to a] optimize so the garbage collector doesn't have to work as hard, and b] deal with uncollectable objects, such as those with a __del__ method, or extension objects that don't...
Cascade Menu Builder can find good use in your webpage to generate navigation menus that implements site navigation. The details like style, text or folder location, class, mouseover class, arrow color, arrow color over, arrow size, folder group...
This script helps you find XSS holes in your script to patch them.
I am new to python so I need lots of help on this code basically what it does is takes a decimal number(155) converts it into binary(10011011) takes the first six numbers in that(100110) converts that into a decimal number(38) and from there... 
User Review for Find myltiple numbers in array 
