Software Listing of Author : "Suri Like"
- Intersect2
- License: Shareware
- Price:


In MATLAB, there is a command called "intersect", which finds the set intersection (common elements) of two vectors. However, this command doesn't work if I want to compare more than two vectors and find out their intersection. Therefore, I decided to write this function which is called "intersect2". It can find the common elements of any number of 1D numeric arrays of the same or different sizes and returns an array consisting of only those elements. INPUT: The input variable "cell" has to be a cell array, with each cell occupied by an 1D numeric array. For example, if you want to find the intersection (common elements) of the following three arrays a = [ 1 3 4 6 8 9 ]; b = [ 3 1 0 8 6 4 ]; c = [ 7 8 1 9 3 4 ];, you need to first put all of them into a cell array, i.e. cell = {a, b, c}; Then you could use "cell" as the input...
- Platform: Matlab, Scripts
- Suri's Sudoku Solver (SSS)
- License: Shareware
- Price:


Suri's Sudoku Solver (SSS) DESCRIPTION: This function is a sudoku puzzle solver that uses a recursive algorithm described below. Step 1. Take a standard sudoku puzzle in matrix form with all the blank spots filled with zeros. For example, you could type puzzle=[7 0 0 5 8 3 0 0 6; 0 0 6 0 0 1 4 0 5; 0 5 2 0 0 6 0 8 3; 3 0 0 2 0 0 9 5 8; 5 0 0 0 7 8 0 6 0; 6 4 8 0 1 0 3 0 0; 0 6 0 8 0 2 5 0 0; 0 0 3 1 5 0 0 7 2; 2 1 5 6 0 0 0 3 0] and MATLAB will give you puzzle = 7 0 0 5 8 3 0 0 6 0 0 6 0 0 1 4 0 5 0 5 2 0 0 6 0 8 3 3 0 0 2 0 0 9 5 8 5 0 0 0 7 8 0 6 0 6 4 8 0 1 0 3 0 0 0 6 0 8 0 2 5 0 0 0 0 3 1 5 0 0 7 2 2 1 5 6 0 0 0 3 0 Step 2. Find the locations of all zeros. For each of them, determine which numbers (between 1 and 9) are missing in the row, column and 3x3 box (region) that the zero belongs to. For example, the first zero...
- Platform: Matlab, Scripts
- wordcount
- License: Freeware
- Price: 0.00


PURPOSE: This function reads the alphanumeric words (e.g. 'Finance', 'recycle', 'M16') from a plain text document (.txt) and displays the most frequently used words in the document. For example, after processing a document containing pizza recipes, I got the following output from this function: 'WORD' 'FREQ' 'REL. FREQ' 'dough' [ 170] '1.1336%' 'flour' [ 84] '0.5601%' 'oven' [ 70] '0.4668%' 'pizza' [ 49] '0.3268%' 'sauce' [ 47] '0.3134%' 'cheese' [ 39] '0.2601%' The first column consists of the most frequently used words in this document. The second column consists of the frequency of the word (i.e. the number of times that the word appeared in the document). The last column contains the relative frequency of the word, which is simply the frequency of the word divided by the total number of words in the document. This function...
- Platform: Matlab, Scripts